public class ArrayPathElement extends BasePathElement implements MatchablePathElement, EvaluatablePathElement
| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayPathElement.ArrayPathType |
| Constructor and Description |
|---|
ArrayPathElement(String key) |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(WalkedPath walkedPath)
Evaluate this key as if it is an write path element.
|
String |
getCanonicalForm()
Get the canonical form of this PathElement.
|
Integer |
getExplicitArrayIndex() |
boolean |
isExplicitArrayIndex() |
MatchedElement |
match(String dataKey,
WalkedPath walkedPath)
See if this PathElement matches the given dataKey.
|
getRawKey, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRawKeypublic ArrayPathElement(String key)
public String getCanonicalForm()
PathElementgetCanonicalForm in interface PathElementpublic String evaluate(WalkedPath walkedPath)
EvaluatablePathElementevaluate in interface EvaluatablePathElementwalkedPath - "up the tree" list of LiteralPathElements, that may be used by this key as it is computingpublic Integer getExplicitArrayIndex()
public boolean isExplicitArrayIndex()
public MatchedElement match(String dataKey, WalkedPath walkedPath)
MatchablePathElementmatch in interface MatchablePathElementdataKey - 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 matchCopyright © 2023. All rights reserved.