T
- The Value typepublic abstract class SimpleNode<T> extends LeafNode
Modifier and Type | Field and Description |
---|---|
static boolean |
EVAL_GREATER
Constants for comparisons : @gt;
|
static boolean |
EVAL_LESSER
Constants for comparisons : <
|
Modifier and Type | Method and Description |
---|---|
ExprNode |
clone()
Makes a full clone in new memory space of the current node and children
|
boolean |
equals(Object other) |
String |
getEscapedValue() |
Value |
getValue()
Gets the value.
|
int |
hashCode() |
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception.
|
StringBuilder |
printToBuffer(StringBuilder buf)
Pretty prints this expression node along with annotation information.
|
void |
setValue(Value value)
Sets the value of this node.
|
accept, getAttribute, getAttributeType, isLeaf, isSchemaAware, setAttribute, setAttributeType
get, getAssertionType, set, toString
public static final boolean EVAL_GREATER
public static final boolean EVAL_LESSER
public ExprNode clone()
clone
in interface ExprNode
clone
in class AbstractExprNode
public String getEscapedValue()
public void setValue(Value value)
value
- the value for this nodepublic StringBuilder printToBuffer(StringBuilder buf)
buf
- the buffer to print intopublic 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 int hashCode()
hashCode
in class LeafNode
Object.hashCode()
public boolean equals(Object other)
equals
in class LeafNode
true
if both objects are equalObject.equals(java.lang.Object)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.