public class AmpPathElement extends BasePathElement implements MatchablePathElement, EvaluatablePathElement
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
canonicalForm |
private java.util.List<java.lang.Object> |
tokens |
Constructor and Description |
---|
AmpPathElement(java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
evaluate(WalkedPath walkedPath)
Evaluate this key as if it is an write path element.
|
private static int |
findEndOfReference(java.lang.String key) |
java.lang.String |
getCanonicalForm()
Get the canonical form of this PathElement.
|
java.util.List<java.lang.Object> |
getTokens() |
MatchedElement |
match(java.lang.String dataKey,
WalkedPath walkedPath)
See if this PathElement matches the given dataKey.
|
getRawKey, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRawKey
private final java.util.List<java.lang.Object> tokens
private final java.lang.String canonicalForm
private static int findEndOfReference(java.lang.String key)
public java.lang.String getCanonicalForm()
PathElement
getCanonicalForm
in interface PathElement
public java.util.List<java.lang.Object> getTokens()
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 MatchedElement match(java.lang.String dataKey, WalkedPath walkedPath)
MatchablePathElement
match
in interface MatchablePathElement
dataKey
- String key value from the input datawalkedPath
- "up the tree" list of LiteralPathElements, that may be used by this key as it is computing its match