|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.CharScanner | +--antlr.debug.DebuggingCharScanner
Untamed:
Field Summary | |
private boolean |
_notDebugMode
|
private ParserEventSupport |
parserEventSupport
|
protected String[] |
ruleNames
|
protected String[] |
semPredNames
|
Fields inherited from class antlr.CharScanner |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, text, tokenObjectClass, traceDepth |
Constructor Summary | |
DebuggingCharScanner(InputBuffer cb)
Enabled: |
|
DebuggingCharScanner(LexerSharedInputState state)
Enabled: |
Method Summary | |
void |
addMessageListener(MessageListener l)
Enabled: |
void |
addNewLineListener(NewLineListener l)
Enabled: |
void |
addParserListener(ParserListener l)
Enabled: |
void |
addParserMatchListener(ParserMatchListener l)
Enabled: |
void |
addParserTokenListener(ParserTokenListener l)
Enabled: |
void |
addSemanticPredicateListener(SemanticPredicateListener l)
Enabled: |
void |
addSyntacticPredicateListener(SyntacticPredicateListener l)
Enabled: |
void |
addTraceListener(TraceListener l)
Enabled: |
void |
consume()
Enabled: |
protected void |
fireEnterRule(int num,
int data)
|
protected void |
fireExitRule(int num,
int ttype)
|
protected boolean |
fireSemanticPredicateEvaluated(int type,
int num,
boolean condition)
|
protected void |
fireSyntacticPredicateFailed()
|
protected void |
fireSyntacticPredicateStarted()
|
protected void |
fireSyntacticPredicateSucceeded()
|
String |
getRuleName(int num)
Enabled: |
String |
getSemPredName(int num)
Enabled: |
void |
goToSleep()
Enabled: |
boolean |
isDebugMode()
Enabled: |
char |
LA(int i)
Enabled: |
protected Token |
makeToken(int t)
|
void |
match(BitSet b)
Enabled: |
void |
match(char c)
Enabled: |
void |
match(String s)
Enabled: |
void |
matchNot(char c)
Enabled: |
void |
matchRange(char c1,
char c2)
Enabled: |
void |
newline()
Enabled: |
void |
removeMessageListener(MessageListener l)
Enabled: |
void |
removeNewLineListener(NewLineListener l)
Enabled: |
void |
removeParserListener(ParserListener l)
Enabled: |
void |
removeParserMatchListener(ParserMatchListener l)
Enabled: |
void |
removeParserTokenListener(ParserTokenListener l)
Enabled: |
void |
removeSemanticPredicateListener(SemanticPredicateListener l)
Enabled: |
void |
removeSyntacticPredicateListener(SyntacticPredicateListener l)
Enabled: |
void |
removeTraceListener(TraceListener l)
Enabled: |
void |
reportError(MismatchedCharException e)
Enabled: Report exception errors caught in nextToken() |
void |
reportError(String s)
Enabled: Parser error-reporting function can be overridden in subclass |
void |
reportWarning(String s)
Enabled: Parser warning-reporting function can be overridden in subclass |
void |
setDebugMode(boolean value)
Enabled: |
void |
setupDebugging()
Enabled: |
void |
wakeUp()
Enabled: |
Methods inherited from class antlr.CharScanner |
append, append, commit, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getText, getTokenObject, mark, panic, panic, reportError, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface antlr.TokenStream |
nextToken |
Field Detail |
private ParserEventSupport parserEventSupport
private boolean _notDebugMode
protected String[] ruleNames
protected String[] semPredNames
Constructor Detail |
public DebuggingCharScanner(InputBuffer cb)
public DebuggingCharScanner(LexerSharedInputState state)
Method Detail |
public void addMessageListener(MessageListener l)
public void addNewLineListener(NewLineListener l)
public void addParserListener(ParserListener l)
public void addParserMatchListener(ParserMatchListener l)
public void addParserTokenListener(ParserTokenListener l)
public void addSemanticPredicateListener(SemanticPredicateListener l)
public void addSyntacticPredicateListener(SyntacticPredicateListener l)
public void addTraceListener(TraceListener l)
public void consume() throws CharStreamException
consume
in class CharScanner
CharStreamException
protected void fireEnterRule(int num, int data)
protected void fireExitRule(int num, int ttype)
protected boolean fireSemanticPredicateEvaluated(int type, int num, boolean condition)
protected void fireSyntacticPredicateFailed()
protected void fireSyntacticPredicateStarted()
protected void fireSyntacticPredicateSucceeded()
public String getRuleName(int num)
getRuleName
in interface DebuggingParser
public String getSemPredName(int num)
getSemPredName
in interface DebuggingParser
public void goToSleep()
public boolean isDebugMode()
public char LA(int i) throws CharStreamException
LA
in class CharScanner
CharStreamException
protected Token makeToken(int t)
makeToken
in class CharScanner
public void match(char c) throws MismatchedCharException, CharStreamException
match
in class CharScanner
MismatchedCharException
CharStreamException
public void match(BitSet b) throws MismatchedCharException, CharStreamException
match
in class CharScanner
MismatchedCharException
CharStreamException
public void match(String s) throws MismatchedCharException, CharStreamException
match
in class CharScanner
MismatchedCharException
CharStreamException
public void matchNot(char c) throws MismatchedCharException, CharStreamException
matchNot
in class CharScanner
MismatchedCharException
CharStreamException
public void matchRange(char c1, char c2) throws MismatchedCharException, CharStreamException
matchRange
in class CharScanner
MismatchedCharException
CharStreamException
public void newline()
newline
in class CharScanner
public void removeMessageListener(MessageListener l)
public void removeNewLineListener(NewLineListener l)
public void removeParserListener(ParserListener l)
public void removeParserMatchListener(ParserMatchListener l)
public void removeParserTokenListener(ParserTokenListener l)
public void removeSemanticPredicateListener(SemanticPredicateListener l)
public void removeSyntacticPredicateListener(SyntacticPredicateListener l)
public void removeTraceListener(TraceListener l)
public void reportError(MismatchedCharException e)
public void reportError(String s)
reportError
in class CharScanner
public void reportWarning(String s)
reportWarning
in class CharScanner
public void setDebugMode(boolean value)
public void setupDebugging()
public void wakeUp()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |