public class MatchedElement extends BasePathElement implements EvaluatablePathElement
Modifier and Type | Field and Description |
---|---|
private int |
hashCount |
private java.util.List<java.lang.String> |
subKeys |
Constructor and Description |
---|
MatchedElement(java.lang.String key) |
MatchedElement(java.lang.String key,
java.util.List<java.lang.String> subKeys) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
evaluate(WalkedPath walkedPath)
Evaluate this key as if it is an write path element.
|
java.lang.String |
getCanonicalForm()
Get the canonical form of this PathElement.
|
int |
getHashCount() |
int |
getSubKeyCount() |
java.lang.String |
getSubKeyRef(int index) |
void |
incrementHashCount()
Here be mutability...
|
getRawKey, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRawKey
private final java.util.List<java.lang.String> subKeys
private int hashCount
public MatchedElement(java.lang.String key)
public MatchedElement(java.lang.String key, java.util.List<java.lang.String> subKeys)
public java.lang.String evaluate(WalkedPath walkedPath)
EvaluatablePathElement
evaluate
in interface EvaluatablePathElement
walkedPath
- "up the tree" list of LiteralPathElements, that may be used by this key as it is computingpublic java.lang.String getCanonicalForm()
PathElement
getCanonicalForm
in interface PathElement
public java.lang.String getSubKeyRef(int index)
public int getSubKeyCount()
public int getHashCount()
public void incrementHashCount()