Package ortus.boxlang.runtime.operators
Class InstanceOf
java.lang.Object
ortus.boxlang.runtime.operators.InstanceOf
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
invoke
(IBoxContext context, Object left, Object right)
-
Constructor Details
-
InstanceOf
public InstanceOf()
-
-
Method Details
-
invoke
- Parameters:
left
- The object to perform type check onright
- The type to check against- Returns:
- The result
-