Class InstanceOf

java.lang.Object
ortus.boxlang.runtime.operators.InstanceOf
All Implemented Interfaces:
IOperator

public class InstanceOf extends Object implements IOperator
Performs instance of check. https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-in-k/isinstanceof.html - The object specified by the first parameter is an instance of the interface or component specified by the second parameter. - The Java object specified by the first parameter was created by using the object component or CreateObject method and is an instance of the Java class specified by the second parameter. - The object specified by the first parameter is an instance of a component that extends the component specified in the second parameter. - The object specified by the first parameter is an instance of a component that extends a component that implements the interface specified in the second parameter. - The Java object specified by the first parameter was created by using the object component or CreateObject method and is an instance of a Java class that extends the class specified by the second parameter.
  • Constructor Details

    • InstanceOf

      public InstanceOf()
  • Method Details

    • invoke

      public static Boolean invoke(IBoxContext context, Object left, Object right)
      Parameters:
      left - The object to perform type check on
      right - The type to check against
      Returns:
      The result