antlr.debug
Class DebuggingCharScanner

java.lang.Object
  |
  +--antlr.CharScanner
        |
        +--antlr.debug.DebuggingCharScanner
All Implemented Interfaces:
DebuggingParser, TokenStream

public abstract class DebuggingCharScanner
extends CharScanner
implements DebuggingParser

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

parserEventSupport

private ParserEventSupport parserEventSupport

_notDebugMode

private boolean _notDebugMode

ruleNames

protected String[] ruleNames

semPredNames

protected String[] semPredNames
Constructor Detail

DebuggingCharScanner

public DebuggingCharScanner(InputBuffer cb)
Enabled:


DebuggingCharScanner

public DebuggingCharScanner(LexerSharedInputState state)
Enabled:

Method Detail

addMessageListener

public void addMessageListener(MessageListener l)
Enabled:


addNewLineListener

public void addNewLineListener(NewLineListener l)
Enabled:


addParserListener

public void addParserListener(ParserListener l)
Enabled:


addParserMatchListener

public void addParserMatchListener(ParserMatchListener l)
Enabled:


addParserTokenListener

public void addParserTokenListener(ParserTokenListener l)
Enabled:


addSemanticPredicateListener

public void addSemanticPredicateListener(SemanticPredicateListener l)
Enabled:


addSyntacticPredicateListener

public void addSyntacticPredicateListener(SyntacticPredicateListener l)
Enabled:


addTraceListener

public void addTraceListener(TraceListener l)
Enabled:


consume

public void consume()
             throws CharStreamException
Enabled:

Overrides:
consume in class CharScanner
CharStreamException

fireEnterRule

protected void fireEnterRule(int num,
                             int data)

fireExitRule

protected void fireExitRule(int num,
                            int ttype)

fireSemanticPredicateEvaluated

protected boolean fireSemanticPredicateEvaluated(int type,
                                                 int num,
                                                 boolean condition)

fireSyntacticPredicateFailed

protected void fireSyntacticPredicateFailed()

fireSyntacticPredicateStarted

protected void fireSyntacticPredicateStarted()

fireSyntacticPredicateSucceeded

protected void fireSyntacticPredicateSucceeded()

getRuleName

public String getRuleName(int num)
Enabled:

Specified by:
getRuleName in interface DebuggingParser

getSemPredName

public String getSemPredName(int num)
Enabled:

Specified by:
getSemPredName in interface DebuggingParser

goToSleep

public void goToSleep()
Enabled:


isDebugMode

public boolean isDebugMode()
Enabled:


LA

public char LA(int i)
        throws CharStreamException
Enabled:

Overrides:
LA in class CharScanner
CharStreamException

makeToken

protected Token makeToken(int t)
Overrides:
makeToken in class CharScanner

match

public void match(char c)
           throws MismatchedCharException,
                  CharStreamException
Enabled:

Overrides:
match in class CharScanner
MismatchedCharException
CharStreamException

match

public void match(BitSet b)
           throws MismatchedCharException,
                  CharStreamException
Enabled:

Overrides:
match in class CharScanner
MismatchedCharException
CharStreamException

match

public void match(String s)
           throws MismatchedCharException,
                  CharStreamException
Enabled:

Overrides:
match in class CharScanner
MismatchedCharException
CharStreamException

matchNot

public void matchNot(char c)
              throws MismatchedCharException,
                     CharStreamException
Enabled:

Overrides:
matchNot in class CharScanner
MismatchedCharException
CharStreamException

matchRange

public void matchRange(char c1,
                       char c2)
                throws MismatchedCharException,
                       CharStreamException
Enabled:

Overrides:
matchRange in class CharScanner
MismatchedCharException
CharStreamException

newline

public void newline()
Enabled:

Overrides:
newline in class CharScanner

removeMessageListener

public void removeMessageListener(MessageListener l)
Enabled:


removeNewLineListener

public void removeNewLineListener(NewLineListener l)
Enabled:


removeParserListener

public void removeParserListener(ParserListener l)
Enabled:


removeParserMatchListener

public void removeParserMatchListener(ParserMatchListener l)
Enabled:


removeParserTokenListener

public void removeParserTokenListener(ParserTokenListener l)
Enabled:


removeSemanticPredicateListener

public void removeSemanticPredicateListener(SemanticPredicateListener l)
Enabled:


removeSyntacticPredicateListener

public void removeSyntacticPredicateListener(SyntacticPredicateListener l)
Enabled:


removeTraceListener

public void removeTraceListener(TraceListener l)
Enabled:


reportError

public void reportError(MismatchedCharException e)
Enabled: Report exception errors caught in nextToken()


reportError

public void reportError(String s)
Enabled: Parser error-reporting function can be overridden in subclass

Overrides:
reportError in class CharScanner

reportWarning

public void reportWarning(String s)
Enabled: Parser warning-reporting function can be overridden in subclass

Overrides:
reportWarning in class CharScanner

setDebugMode

public void setDebugMode(boolean value)
Enabled:


setupDebugging

public void setupDebugging()
Enabled:


wakeUp

public void wakeUp()
Enabled:



comments?