public abstract class MetaPatternParser extends Object
Constructor and Description |
---|
MetaPatternParser(CharSequence input)
Construct the parser.
|
MetaPatternParser(MetaPattern pattern,
CharSequence input)
Construct the parser and initialize the matcher with the pattern given.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
advance(MetaPattern pattern)
Advance parsing to the next element.
|
boolean |
atEnd()
Whether the internal cursor has advanced to the end of the input.
|
Matcher |
matcher()
Gets the matcher.
|
boolean |
matches()
Whether the matcher matches the pattern.
|
void |
setPattern(MetaPattern pattern) |
public MetaPatternParser(CharSequence input)
input
- to parseto initialize the matcher with the pattern.
public MetaPatternParser(MetaPattern pattern, CharSequence input)
pattern
- Meta patterninput
- Input to parsepublic void setPattern(MetaPattern pattern)
pattern
- Patternprotected final boolean advance(MetaPattern pattern)
pattern
- Meta patternpublic boolean matches()
public final Matcher matcher()
public final boolean atEnd()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.