public abstract class AbstractExprNode extends Object implements ExprNode
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.
|
AssertionType |
getAssertionType()
Gets the assertion type of this node.
|
int |
hashCode() |
boolean |
isSchemaAware()
Tells if this Node is Schema aware.
|
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() |
public AssertionType getAssertionType()
ExprNode
getAssertionType
in interface ExprNode
ExprNode.getAssertionType()
public boolean equals(Object o)
equals
in class Object
true
if both objects are equalObject.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public Object get(Object key)
ExprNode
get
in interface ExprNode
key
- the annotation key.ExprNode.get(java.lang.Object)
public void set(String key, Object value)
ExprNode
set
in interface ExprNode
key
- the annotation key.value
- the annotation value.ExprNode.set(String, java.lang.Object)
public boolean isSchemaAware()
isSchemaAware
in interface ExprNode
public StringBuilder printRefinementToBuffer(StringBuilder buf)
printRefinementToBuffer
in interface ExprNode
buf
- the buffer to append to.UnsupportedOperationException
- if this node isn't a part of a refinement.public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.