java.lang.Object
org.eclipse.ditto.rql.model.predicates.ast.SuperNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
LogicalNode, RootNode

public abstract class SuperNode extends Object implements Node
A super node is a node in the AST that can have other nodes as children.
  • Constructor Details

    • SuperNode

      protected SuperNode()
      Constructor. Creates an instance of a super node.
  • Method Details

    • getChildren

      public List<Node> getChildren()
      Retrieve all children of this super node.
      Returns:
      a list of all children.
    • accept

      public void accept(PredicateVisitor predicateVisitor)
      PredicateVisitor Pattern. Takes a visitor as parameter and calls the corresponding visit method with itself as parameter.
      Specified by:
      accept in interface Node
      Parameters:
      predicateVisitor - the visitor which should be called.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object