Package org.intermine.pathquery
Class LogicExpression.Operator
- java.lang.Object
-
- org.intermine.pathquery.LogicExpression.Node
-
- org.intermine.pathquery.LogicExpression.Operator
-
- Direct Known Subclasses:
LogicExpression.And
,LogicExpression.Or
- Enclosing class:
- LogicExpression
public abstract class LogicExpression.Operator extends LogicExpression.Node
An operator node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addChild(LogicExpression.Node child)
Adds a node to the collection of children.java.util.Set<LogicExpression.Node>
getChildren()
Get an unmodifiable copy of the node's children.protected abstract java.lang.String
getOperator()
Override to provide text symbol for this operator.java.lang.String
toString()
Produce an expression for this branch of the tree.
-
-
-
Method Detail
-
getOperator
protected abstract java.lang.String getOperator()
Override to provide text symbol for this operator. Used in toString.- Returns:
- operator name
-
toString
public java.lang.String toString()
Produce an expression for this branch of the tree.- Overrides:
toString
in classjava.lang.Object
- Returns:
- expression representing this branch
-
getChildren
public java.util.Set<LogicExpression.Node> getChildren()
Get an unmodifiable copy of the node's children.- Returns:
- unmodifiable set of node children
-
addChild
protected void addChild(LogicExpression.Node child)
Adds a node to the collection of children.- Parameters:
child
- the new Node
-
-