Class LogicalNode
java.lang.Object
org.eclipse.ditto.rql.model.predicates.ast.SuperNode
org.eclipse.ditto.rql.model.predicates.ast.LogicalNode
- All Implemented Interfaces:
Node
Implements logical nodes like AND or OR. A logical node has a name and several children to which the logic of this
node has to be applied.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the possible types that aLogicalNodecan have. -
Constructor Summary
ConstructorsConstructorDescriptionLogicalNode(String name) Constructor.LogicalNode(LogicalNode.Type type) Constructor.LogicalNode(LogicalNode.Type type, Collection<Node> subNodes) Constructor.LogicalNode(LogicalNode.Type type, Node... subNodes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(PredicateVisitor predicateVisitor) PredicateVisitor Pattern.booleangetName()Retrieve the name of this logical node.getType()Retrieve theLogicalNode.Typeof this logical node.inthashCode()toString()Methods inherited from class org.eclipse.ditto.rql.model.predicates.ast.SuperNode
getChildren
-
Constructor Details
-
LogicalNode
Constructor. Creates a new node with the given name.- Parameters:
name- name of this logical node.
-
LogicalNode
Constructor. Creates a new node with the given type.- Parameters:
type- type of this logical node.
-
LogicalNode
Constructor. Creates a new node with the given type.- Parameters:
type- type of this logical node.subNodes- the Nodes to add directly as children.
-
LogicalNode
Constructor. Creates a new node with the given type.- Parameters:
type- type of this logical node.subNodes- the Nodes to add directly as children.
-
-
Method Details
-
getName
Retrieve the name of this logical node.- Returns:
- the name of the logical node.
-
getType
Retrieve theLogicalNode.Typeof this logical node.- Returns:
- the type of the logical node.
-
accept
Description copied from class:SuperNodePredicateVisitor Pattern. Takes a visitor as parameter and calls the corresponding visit method with itself as parameter. -
toString
-
hashCode
public int hashCode() -
equals
-