public final class OptMatcher extends StandardMatcher
Matcher
that tries its submatcher once against the input and always succeeds.
This class is not intended to be instantiated or sub-classed by clients.
Matcher.MatchResult
Modifier | Constructor and Description |
---|---|
protected |
OptMatcher(Matcher matcher) |
Modifier and Type | Method and Description |
---|---|
protected Matcher.MatchResult |
doMatch(ParsingState parsingState) |
java.lang.String |
toString() |
equals, hashCode, match, matchWorker
getMemoizedAst, memoizeAst
enterEvent, exitWithMatchEvent, exitWithoutMatchEvent, isMatching, matchToIndex
protected OptMatcher(Matcher matcher)
protected Matcher.MatchResult doMatch(ParsingState parsingState)
doMatch
in class StandardMatcher
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012 SonarSource. All Rights Reserved.