Class ExistsNode

java.lang.Object
org.eclipse.ditto.rql.model.predicates.ast.ExistsNode
All Implemented Interfaces:
Node

public class ExistsNode extends Object implements Node
Implements an exists node. Such a node only has one parameter that is the field name to check for existence.
  • Constructor Details

    • ExistsNode

      public ExistsNode(String property)
      Constructor. Creates a new node with the given property.
      Parameters:
      property - property of this exists node.
  • Method Details

    • getProperty

      public String getProperty()
      Retrieve the property of this exists node.
      Returns:
      the property of the exists node.
    • accept

      public void accept(PredicateVisitor predicateVisitor)
      Description copied from interface: Node
      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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object