public class FollowMatchersVisitor extends DefaultMatcherVisitor<java.lang.Boolean>
Modifier and Type | Field and Description |
---|---|
private CanMatchEmptyVisitor |
canMatchEmptyVisitor |
private MatcherContext |
context |
private java.util.List<Matcher> |
followMatchers |
Constructor and Description |
---|
FollowMatchersVisitor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
defaultValue(AbstractMatcher matcher)
Returns the default value for all visiting methods that have not been overridden.
|
java.util.List<Matcher> |
getFollowMatchers(MatcherContext currentContext) |
java.lang.Boolean |
visit(OneOrMoreMatcher matcher) |
java.lang.Boolean |
visit(SequenceMatcher matcher) |
java.lang.Boolean |
visit(ZeroOrMoreMatcher matcher) |
private final CanMatchEmptyVisitor canMatchEmptyVisitor
private final java.util.List<Matcher> followMatchers
private MatcherContext context
public java.util.List<Matcher> getFollowMatchers(MatcherContext currentContext)
public java.lang.Boolean visit(OneOrMoreMatcher matcher)
visit
in interface MatcherVisitor<java.lang.Boolean>
visit
in class DefaultMatcherVisitor<java.lang.Boolean>
public java.lang.Boolean visit(SequenceMatcher matcher)
visit
in interface MatcherVisitor<java.lang.Boolean>
visit
in class DefaultMatcherVisitor<java.lang.Boolean>
public java.lang.Boolean visit(ZeroOrMoreMatcher matcher)
visit
in interface MatcherVisitor<java.lang.Boolean>
visit
in class DefaultMatcherVisitor<java.lang.Boolean>
public java.lang.Boolean defaultValue(AbstractMatcher matcher)
DefaultMatcherVisitor
defaultValue
in class DefaultMatcherVisitor<java.lang.Boolean>
matcher
- the matcher