public abstract class Matcher
extends java.lang.Object
This class is not intended to be instantiated or sub-classed by clients.
Modifier and Type | Class and Description |
---|---|
protected static class |
Matcher.MatchResult |
Modifier | Constructor and Description |
---|---|
protected |
Matcher(Matcher... children) |
Modifier and Type | Method and Description |
---|---|
protected Matcher.MatchResult |
doMatch(ParsingState parsingState) |
protected void |
enterEvent(ParsingState parsingState) |
protected void |
exitWithMatchEvent(ParsingState parsingState,
AstNode astNode) |
protected void |
exitWithoutMatchEvent(ParsingState parsingState) |
boolean |
isMatching(ParsingState parsingState) |
abstract AstNode |
match(ParsingState parsingState) |
int |
matchToIndex(ParsingState parsingState) |
public Matcher[] children
protected Matcher(Matcher... children)
public final boolean isMatching(ParsingState parsingState)
public final int matchToIndex(ParsingState parsingState)
public abstract AstNode match(ParsingState parsingState)
BacktrackingEvent
- if the match was not successfulprotected Matcher.MatchResult doMatch(ParsingState parsingState)
protected final void enterEvent(ParsingState parsingState)
protected void exitWithMatchEvent(ParsingState parsingState, AstNode astNode)
protected void exitWithoutMatchEvent(ParsingState parsingState)
Copyright © 2012 SonarSource. All Rights Reserved.