public class OrNode extends BranchNode
childrenannotations, assertionType| Constructor and Description |
|---|
OrNode()
Creates an empty OrNode
|
OrNode(ExprNode... childList)
Creates a OrNode using a logical operator and a list of children.
|
OrNode(List<ExprNode> childList)
Creates a OrNode using a logical operator and a list of children.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
AssertionType |
getOperator()
Gets the operator for this branch node.
|
int |
hashCode() |
boolean |
isConjunction()
Tests whether or not this node is a conjunction (a AND'ed branch).
|
boolean |
isDisjunction()
Tests whether or not this node is a disjunction (a OR'ed branch).
|
boolean |
isNegation()
Tests whether or not this node is a negation (a NOT'ed branch).
|
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception.
|
String |
toString()
Gets the recursive prefix string represent of the filter from this node
down.
|
accept, addNode, addNodeToHead, clone, getChildren, getFirstChild, isLeaf, isSchemaAware, setChildrenget, getAnnotations, getAssertionType, setpublic OrNode(List<ExprNode> childList)
childList - the child nodes under this branch node.public OrNode(ExprNode... childList)
childList - the child nodes under this branch node.public OrNode()
public AssertionType getOperator()
public boolean isDisjunction()
public boolean isConjunction()
public boolean isNegation()
public StringBuilder printRefinementToBuffer(StringBuilder buf)
AbstractExprNodeprintRefinementToBuffer in interface ExprNodeprintRefinementToBuffer in class AbstractExprNodebuf - the buffer to append to.UnsupportedOperationException - if this node isn't a part of a refinement.ExprNode.printRefinementToBuffer(StringBuilder)public String toString()
toString in class AbstractExprNodeObject.toString()public int hashCode()
hashCode in class BranchNodeObject.hashCode()public boolean equals(Object other)
equals in class BranchNodetrue if both objects are equalObject.equals(java.lang.Object)Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.