public interface ExprNode extends Cloneable
Modifier and Type | Method and Description |
---|---|
Object |
accept(FilterVisitor visitor)
Element/node accept method for visitor pattern.
|
ExprNode |
clone()
Clone this expression node.
|
Object |
get(Object key)
Gets an annotation on the tree by key.
|
AssertionType |
getAssertionType()
Gets the assertion type of this node.
|
boolean |
isLeaf()
Tests to see if this node is a leaf or branch node.
|
boolean |
isSchemaAware()
Tells if this Node is Schema aware.
|
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Recursively appends the refinement string representation of this node and its
descendants in prefix notation to a buffer.
|
void |
set(String key,
Object value)
Sets a annotation key to a value.
|
Object get(Object key)
key
- the annotation key.void set(String key, Object value)
key
- the annotation key.value
- the annotation value.boolean isLeaf()
boolean isSchemaAware()
AssertionType getAssertionType()
StringBuilder printRefinementToBuffer(StringBuilder buf)
buf
- the buffer to append to.UnsupportedOperationException
- if this node isn't a part of a refinement.Object accept(FilterVisitor visitor)
visitor
- the filter expression tree structure visitorCopyright © 2003–2021 The Apache Software Foundation. All rights reserved.