public class AndNode extends BranchNode
Constructor and Description |
---|
AndNode()
Creates an empty AndNode
|
AndNode(ExprNode... childList)
Creates a AndNode using a logical operator and a list of children.
|
AndNode(List<ExprNode> childList)
Creates a AndNode 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, setChildren
get, getAssertionType, set
public AndNode(List<ExprNode> childList)
childList
- the child nodes under this branch node.public AndNode(ExprNode... childList)
childList
- the child nodes under this branch node.public AndNode()
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 to append to.UnsupportedOperationException
- 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–2020 The Apache Software Foundation. All rights reserved.