java.lang.Object
com.aquima.interactions.expressions.parser.ParseNodeBase
com.aquima.interactions.expressions.r7.parser.nodes.InstanceOfNode
All Implemented Interfaces:
IParseNode

public class InstanceOfNode extends ParseNodeBase
The instance-of expression will check the left-hand-side expression against the type specified by the right-hand-side.
Since:
7.1
Author:
O. Kerpershoek
  • Constructor Details

    • InstanceOfNode

      public InstanceOfNode(IParseNode instanceExpr, IParseNode typeExpr)
      Constructs the class with the required arguments.
      Parameters:
      instanceExpr - Expression resulting in an instance.
      typeExpr - Expression resulting in a type name.
  • Method Details

    • getInstanceExpr

      public IParseNode getInstanceExpr()
      This method returns the expression of which the type should be checked.
      Returns:
      The expression of which the type should be checked.
    • getTypeExpr

      public IParseNode getTypeExpr()
      This method returns the expression that results in the type name.
      Returns:
      the expression that results in the type name.
    • toString

      public String toString()
      Overrides:
      toString in class Object