Package org.parboiled.matchervisitors
Class GetStarterCharVisitor
java.lang.Object
org.parboiled.matchervisitors.DefaultMatcherVisitor<Character>
org.parboiled.matchervisitors.GetStarterCharVisitor
- All Implemented Interfaces:
MatcherVisitor<Character>
Returns the first character a given matcher can start a match with.
For all complex matchers, i.e. the ones not always matching just one character, the visitor returns null.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisit
(AnyMatcher matcher) visit
(AnyOfMatcher matcher) visit
(CharIgnoreCaseMatcher matcher) visit
(CharMatcher matcher) visit
(CharRangeMatcher matcher) visit
(CustomMatcher matcher)
-
Constructor Details
-
GetStarterCharVisitor
public GetStarterCharVisitor()
-
-
Method Details
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<Character>
- Overrides:
visit
in classDefaultMatcherVisitor<Character>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<Character>
- Overrides:
visit
in classDefaultMatcherVisitor<Character>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<Character>
- Overrides:
visit
in classDefaultMatcherVisitor<Character>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<Character>
- Overrides:
visit
in classDefaultMatcherVisitor<Character>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<Character>
- Overrides:
visit
in classDefaultMatcherVisitor<Character>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<Character>
- Overrides:
visit
in classDefaultMatcherVisitor<Character>
-