public class AlternativePattern extends TokenPatternBase
Constructor and Description |
---|
AlternativePattern(TokenPatternBase[] matchers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TokenPatternMatch |
matchesLocally(TokenStream stream)
Tries to match this pattern at the current position of the given stream.
|
java.lang.String |
toString() |
createMatch, setGroupIndex
public AlternativePattern(TokenPatternBase[] matchers)
protected TokenPatternMatch matchesLocally(TokenStream stream)
null
otherwise. May modify
the stream's position.matchesLocally
in class TokenPatternBase
public java.lang.String toString()
toString
in class java.lang.Object