public class StarDoublePathElement extends BasePathElement implements StarPathElement
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
mid |
private java.lang.String |
prefix |
private java.lang.String |
suffix |
Constructor and Description |
---|
StarDoublePathElement(java.lang.String key)
+
|
Modifier and Type | Method and Description |
---|---|
private int |
finMidIndex(java.lang.String literal)
The assumption here is: * means 1 or more characters.
|
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.
|
boolean |
stringMatch(java.lang.String literal)
Method to see if a candidate key would match this PathElement.
|
getRawKey, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRawKey
private final java.lang.String prefix
private final java.lang.String suffix
private final java.lang.String mid
public StarDoublePathElement(java.lang.String key)
key
- : should be a String with two "*" elements.public boolean stringMatch(java.lang.String literal)
StarPathElement
stringMatch
in interface StarPathElement
literal
- test to see if the provided string will match this Element's regexprivate int finMidIndex(java.lang.String literal)
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 matchpublic java.lang.String getCanonicalForm()
PathElement
getCanonicalForm
in interface PathElement