public class ArrayPathElement extends BasePathElement implements MatchablePathElement, EvaluatablePathElement
Modifier and Type | Class and Description |
---|---|
static class |
ArrayPathElement.ArrayPathType |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arrayIndex |
private ArrayPathElement.ArrayPathType |
arrayPathType |
private java.lang.String |
canonicalForm |
private PathReference |
ref |
private TransposePathElement |
transposePathElement |
Constructor and Description |
---|
ArrayPathElement(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.
|
java.lang.Integer |
getExplicitArrayIndex() |
boolean |
isExplicitArrayIndex() |
MatchedElement |
match(java.lang.String dataKey,
WalkedPath walkedPath)
See if this PathElement matches the given dataKey.
|
private static java.lang.String |
verifyStringIsNonNegativeInteger(java.lang.String key) |
getRawKey, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRawKey
private final ArrayPathElement.ArrayPathType arrayPathType
private final PathReference ref
private final TransposePathElement transposePathElement
private final java.lang.String canonicalForm
private final java.lang.String arrayIndex
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 computingprivate static java.lang.String verifyStringIsNonNegativeInteger(java.lang.String key)
public java.lang.Integer getExplicitArrayIndex()
public boolean isExplicitArrayIndex()
public 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