PathElements in a linked list. Instances are reusable but are not thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private PathElement | |
| private PathElement | |
| private boolean | |
| private boolean | |
| private final PathPatternParser | |
| private int | |
| private char[] | |
| private int | |
| pack-priv int | |
| private int | |
| private int | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | InternalPathPatternParser(PathPatternParser
reference back to the stateless, public parser parentParser)Package private constructor for use in |
| Modifier and Type | Method and Description |
|---|---|
| private PathElement | Returns: the new path elementUsed the knowledge built up whilst processing since the last path element to determine what kind of path element to create. |
| private int | Returns: the index of the character after the ':' within the pattern expression relative to the start of the whole expressiona complete path expression, e.g. /aaa/bbb/{ccc:...} data, int the start of the capture pattern of interest offset)For a path element representing a captured variable, locate the constraint pattern. |
| private char[] | |
| public PathPattern | |
| private boolean | peekDoubleWildcard()
After processing a separator, a quick peek whether it is followed by a double wildcard (and only as the last path element). |
| private void | pushPathElement(PathElement
the new path element to add newPathElement)Push a path element to the chain being build. |
| private void | |
| private void | resetPathElementState()
Reset all the flags and position markers computed during path element processing. |
| private void |
| capturedVariableNames | back to summary |
|---|---|
| private List<String> capturedVariableNames
| |
| currentPE | back to summary |
|---|---|
| private PathElement currentPE
| |
| headPE | back to summary |
|---|---|
| private PathElement headPE
| |
| insideVariableCapture | back to summary |
|---|---|
| private boolean insideVariableCapture | |
| isCaptureTheRestVariable | back to summary |
|---|---|
| private boolean isCaptureTheRestVariable | |
| parser | back to summary |
|---|---|
| private final PathPatternParser parser | |
| pathElementStart | back to summary |
|---|---|
| private int pathElementStart | |
| pathPatternData | back to summary |
|---|---|
| private char[] pathPatternData | |
| pathPatternLength | back to summary |
|---|---|
| private int pathPatternLength | |
| pos | back to summary |
|---|---|
| pack-priv int pos | |
| singleCharWildcardCount | back to summary |
|---|---|
| private int singleCharWildcardCount | |
| variableCaptureCount | back to summary |
|---|---|
| private int variableCaptureCount | |
| variableCaptureStart | back to summary |
|---|---|
| private int variableCaptureStart | |
| wildcard | back to summary |
|---|---|
| private boolean wildcard | |
| InternalPathPatternParser | back to summary |
|---|---|
| pack-priv InternalPathPatternParser(PathPatternParser parentParser) Package private constructor for use in
| |
| createPathElement | back to summary |
|---|---|
| private PathElement createPathElement() Used the knowledge built up whilst processing since the last path element to determine what kind of path element to create.
| |
| findRegexStart | back to summary |
|---|---|
| private int findRegexStart(char[] data, int offset) For a path element representing a captured variable, locate the constraint pattern. Assumes there is a constraint pattern.
| |
| getPathElementText | back to summary |
|---|---|
| private char[] getPathElementText() | |
| parse | back to summary |
|---|---|
| public PathPattern parse(String pathPattern) throws PatternParseException Package private delegate for | |
| peekDoubleWildcard | back to summary |
|---|---|
| private boolean peekDoubleWildcard() After processing a separator, a quick peek whether it is followed by a double wildcard (and only as the last path element). | |
| pushPathElement | back to summary |
|---|---|
| private void pushPathElement(PathElement newPathElement) Push a path element to the chain being build.
| |
| recordCapturedVariable | back to summary |
|---|---|
| private void recordCapturedVariable(int pos, String variableName) Record a new captured variable. If it clashes with an existing one then report an error. | |
| resetPathElementState | back to summary |
|---|---|
| private void resetPathElementState() Reset all the flags and position markers computed during path element processing. | |
| skipCaptureRegex | back to summary |
|---|---|
| private void skipCaptureRegex() Just hit a ':' and want to jump over the regex specification for this variable. pos will be pointing at the ':', we want to skip until the }.
Nested {...} pairs don't have to be escaped: An escaped } will not be treated as the end of the regex: A separator that should not indicate the end of the regex can be escaped: | |