public class OrNode extends BranchNode
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, setChildren
get, getAssertionType, isSchemaAware, set
public 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)
AbstractExprNode
printRefinementToBuffer
in interface ExprNode
printRefinementToBuffer
in class AbstractExprNode
buf
- The buffer that will contain the resultUnsupportedOperationException
- if this node isn't a part of a refinement.ExprNode.printRefinementToBuffer(StringBuilder)
public String toString()
toString
in class AbstractExprNode
Object.toString()
public int hashCode()
hashCode
in class BranchNode
Object.hashCode()
public boolean equals(Object other)
equals
in class BranchNode
true
if both objects are equalObject.equals(java.lang.Object)
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.