public abstract class LeafNode extends AbstractExprNode
Modifier and Type | Method and Description |
---|---|
Object |
accept(FilterVisitor visitor)
Element/node accept method for visitor pattern.
|
boolean |
equals(Object other) |
String |
getAttribute()
Gets the attribute this leaf node is based on.
|
AttributeType |
getAttributeType()
Gets the attributeType this leaf node is based on.
|
int |
hashCode() |
boolean |
isLeaf()
Gets whether this node is a leaf - the answer is always true here.
|
void |
setAttribute(String attribute)
Sets the attribute this leaf node is based on.
|
void |
setAttributeType(AttributeType attributeType)
Sets the attributeType this leaf node is based on.
|
clone, get, getAssertionType, isSchemaAware, printRefinementToBuffer, set, toString
public final boolean isLeaf()
public final AttributeType getAttributeType()
public final String getAttribute()
public void setAttributeType(AttributeType attributeType)
attributeType
- the attributeType that is asserted by this filter nodepublic void setAttribute(String attribute)
attribute
- the attribute that is asserted by this filter nodepublic final Object accept(FilterVisitor visitor)
ExprNode
visitor
- the filter expression tree structure visitorExprNode.accept(
FilterVisitor)
public int hashCode()
hashCode
in class AbstractExprNode
Object.hashCode()
public boolean equals(Object other)
equals
in class AbstractExprNode
true
if both objects are equalObject.equals(java.lang.Object)
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.