Package org.parboiled.matchervisitors
Class DefaultMatcherVisitor<R>
java.lang.Object
org.parboiled.matchervisitors.DefaultMatcherVisitor<R>
- Type Parameters:
R
- the return value of this visitor
- All Implemented Interfaces:
MatcherVisitor<R>
- Direct Known Subclasses:
DoWithMatcherVisitor
,FollowMatchersVisitor
,GetStarterCharVisitor
A basic
MatcherVisitor
implementation that delegates all visiting methods to one default value method.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefaultValue
(AbstractMatcher matcher) Returns the default value for all visiting methods that have not been overridden.visit
(ActionMatcher matcher) visit
(AnyMatcher matcher) visit
(AnyOfMatcher matcher) visit
(CharIgnoreCaseMatcher matcher) visit
(CharMatcher matcher) visit
(CharRangeMatcher matcher) visit
(CustomMatcher matcher) visit
(EmptyMatcher matcher) visit
(FirstOfMatcher matcher) visit
(NothingMatcher matcher) visit
(OneOrMoreMatcher matcher) visit
(OptionalMatcher matcher) visit
(SequenceMatcher matcher) visit
(TestMatcher matcher) visit
(TestNotMatcher matcher) visit
(ZeroOrMoreMatcher matcher)
-
Constructor Details
-
DefaultMatcherVisitor
public DefaultMatcherVisitor()
-
-
Method Details
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
visit
- Specified by:
visit
in interfaceMatcherVisitor<R>
-
defaultValue
Returns the default value for all visiting methods that have not been overridden.- Parameters:
matcher
- the matcher- Returns:
- the return value (null by default)
-