public abstract class Recognizer<Symbol,ATNInterpreter extends ATNSimulator> extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected ATNInterpreter | 
_interp  | 
static int | 
EOF  | 
| Constructor and Description | 
|---|
Recognizer()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
action(RuleContext _localctx,
      int ruleIndex,
      int actionIndex)  | 
void | 
addErrorListener(ANTLRErrorListener listener)  | 
abstract ATN | 
getATN()  | 
String | 
getErrorHeader(RecognitionException e)
What is the error header, normally line/character position information? 
 | 
ANTLRErrorListener | 
getErrorListenerDispatch()  | 
List<? extends ANTLRErrorListener> | 
getErrorListeners()  | 
abstract String | 
getGrammarFileName()
For debugging and other purposes, might want the grammar name. 
 | 
abstract IntStream | 
getInputStream()  | 
ATNInterpreter | 
getInterpreter()  | 
abstract String[] | 
getRuleNames()  | 
int | 
getState()  | 
String | 
getTokenErrorDisplay(Token t)
How should a token be displayed in an error message? The default
  is to display just the text, but during development you might
  want to have a lot of information spit out. 
 | 
abstract TokenFactory<?> | 
getTokenFactory()  | 
abstract String[] | 
getTokenNames()
Used to print out token names like ID during debugging and
  error reporting. 
 | 
void | 
removeErrorListener(ANTLRErrorListener listener)  | 
void | 
removeErrorListeners()  | 
boolean | 
sempred(RuleContext _localctx,
       int ruleIndex,
       int actionIndex)  | 
abstract void | 
setInputStream(IntStream input)  | 
void | 
setInterpreter(ATNInterpreter interpreter)  | 
void | 
setState(int atnState)
Indicate that the recognizer has changed internal state that is
  consistent with the ATN state passed in. 
 | 
abstract void | 
setTokenFactory(TokenFactory<?> input)  | 
public static final int EOF
protected ATNInterpreter extends ATNSimulator _interp
public abstract String[] getTokenNames()
public abstract String[] getRuleNames()
public abstract String getGrammarFileName()
public abstract ATN getATN()
public ATNInterpreter getInterpreter()
public void setInterpreter(ATNInterpreter interpreter)
public String getErrorHeader(RecognitionException e)
public String getTokenErrorDisplay(Token t)
public void addErrorListener(@NotNull ANTLRErrorListener listener)
NullPointerException - if listener is null.public void removeErrorListener(@NotNull ANTLRErrorListener listener)
public void removeErrorListeners()
@NotNull public List<? extends ANTLRErrorListener> getErrorListeners()
public ANTLRErrorListener getErrorListenerDispatch()
public boolean sempred(@Nullable RuleContext _localctx, int ruleIndex, int actionIndex)
public void action(@Nullable RuleContext _localctx, int ruleIndex, int actionIndex)
public final int getState()
public final void setState(int atnState)
public abstract IntStream getInputStream()
public abstract void setInputStream(IntStream input)
@NotNull public abstract TokenFactory<?> getTokenFactory()
public abstract void setTokenFactory(@NotNull TokenFactory<?> input)
Copyright © 1992-2013 ANTLR. All Rights Reserved.