java.lang.Object
com.aquima.interactions.expressions.semantics.SemanticNodeBase
com.aquima.interactions.expressions.semantics.nodes.TypeOf
All Implemented Interfaces:
ISemanticNode

public class TypeOf extends SemanticNodeBase
This node represents an instance of expression that can be used to determine the type of an instance.
Since:
7.1
Author:
O. Kerpershoek
  • Constructor Details

    • TypeOf

      public TypeOf(Position position, ISemanticNode instanceNode)
      Constructs the node with the required arguments.
      Parameters:
      position - The position of the node in the expression.
      instanceNode - The node containing the expression that will evaluate to an instance.
  • Method Details

    • getChildNodes

      public ISemanticNode[] getChildNodes()
      Description copied from interface: ISemanticNode
      This method returns an array containing the child nodes. The order of the child nodes in the array is not defined, and the array may be empty for nodes that do not have child nodes.
      Returns:
      Array containing the child nodes of this node.
    • collectScopedObjects

      public void collectScopedObjects(ScopedObjects resultSet)
      Description copied from interface: ISemanticNode
      This method may be used to collect the names of the objects that need to be in scope in order to evaluate the expression of this node. The object passed to the method will be enriched with the names of the objects that need to be in scope.
      Parameters:
      resultSet - The object that should be used to add the names of the objects that need to be in scope to.
    • visit

      public void visit(ISemanticNodeVisitor visitor)
      Description copied from interface: ISemanticNode
      This method allows a type safe visitation of the node. The visit method will not invoke the visitor for any child nodes.
      Parameters:
      visitor - The visitor that should be invoked for this node.
    • getInstanceExpr

      public ISemanticNode getInstanceExpr()
      This method returns the expression that will result in an instance.
      Returns:
      the expression that will result in an instance.