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

public class Not extends SemanticNodeBase
This node is used to invert a boolean expression.
Since:
6.0
Author:
O. Kerpershoek, F. van der Meer
  • Constructor Details

    • Not

      public Not(ISemanticTreeBuilder semantics, Position position, ISemanticNode node)
      Constructs the node with the required arguments.
      Parameters:
      semantics - Semantic builder that may be used to request type information.
      position - Position information for the node.
      node - The node that should be inverted.
  • Method Details

    • getExpression

      public ISemanticNode getExpression()
      This method returns the expression node that should be inverted.
      Returns:
      the expression node that should be inverted.
    • 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.
    • 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.
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class SemanticNodeBase