public abstract class AbstractExprNode extends Object implements ExprNode
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
annotations
The map of annotations
|
protected AssertionType |
assertionType
The node type
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExprNode(AssertionType assertionType)
Creates a node by setting abstract node type.
|
| Modifier and Type | Method and Description |
|---|---|
ExprNode |
clone()
Clone the object
|
boolean |
equals(Object o) |
Object |
get(Object key)
Gets an annotation on the tree by key.
|
protected Map<String,Object> |
getAnnotations()
Gets the annotations as a Map.
|
AssertionType |
getAssertionType()
Gets the assertion type of this node.
|
int |
hashCode() |
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception.
|
void |
set(String key,
Object value)
Sets a annotation key to a value.
|
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitaccept, isLeaf, isSchemaAwareprotected final AssertionType assertionType
protected AbstractExprNode(AssertionType assertionType)
assertionType - The node's typepublic AssertionType getAssertionType()
ExprNodegetAssertionType in interface ExprNodeExprNode.getAssertionType()public boolean equals(Object o)
equals in class Objecttrue if both objects are equalObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public Object get(Object key)
ExprNodeget in interface ExprNodekey - the annotation key.ExprNode.get(java.lang.Object)public void set(String key, Object value)
ExprNodeset in interface ExprNodekey - the annotation key.value - the annotation value.ExprNode.set(String, Object)protected Map<String,Object> getAnnotations()
public StringBuilder printRefinementToBuffer(StringBuilder buf)
printRefinementToBuffer in interface ExprNodebuf - the buffer to append to.UnsupportedOperationException - if this node isn't a part of a refinement.public ExprNode clone()
public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.