public class DollarPathElement extends BasePathElement implements MatchablePathElement, EvaluatablePathElement
Modifier and Type | Field and Description |
---|---|
private DollarReference |
dRef |
Constructor and Description |
---|
DollarPathElement(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.
|
java.lang.String |
getCanonicalForm()
Get the canonical form of this PathElement.
|
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 DollarReference dRef
public java.lang.String getCanonicalForm()
PathElement
getCanonicalForm
in interface PathElement
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