Methods Summary |
---|
public char | LA(int i)
char la = super.LA(i);
parserEventSupport.fireLA(i, la);
return la;
|
public void | addMessageListener(persistence.antlr.debug.MessageListener l)
parserEventSupport.addMessageListener(l);
|
public void | addNewLineListener(persistence.antlr.debug.NewLineListener l)
parserEventSupport.addNewLineListener(l);
|
public void | addParserListener(persistence.antlr.debug.ParserListener l)
parserEventSupport.addParserListener(l);
|
public void | addParserMatchListener(persistence.antlr.debug.ParserMatchListener l)
parserEventSupport.addParserMatchListener(l);
|
public void | addParserTokenListener(persistence.antlr.debug.ParserTokenListener l)
parserEventSupport.addParserTokenListener(l);
|
public void | addSemanticPredicateListener(persistence.antlr.debug.SemanticPredicateListener l)
parserEventSupport.addSemanticPredicateListener(l);
|
public void | addSyntacticPredicateListener(persistence.antlr.debug.SyntacticPredicateListener l)
parserEventSupport.addSyntacticPredicateListener(l);
|
public void | addTraceListener(persistence.antlr.debug.TraceListener l)
parserEventSupport.addTraceListener(l);
|
public void | consume()
int la_1 = -99;
try {la_1 = LA(1);}
catch (CharStreamException ignoreAnIOException) {}
super.consume();
parserEventSupport.fireConsume(la_1);
|
protected void | fireEnterRule(int num, int data)
if (isDebugMode())
parserEventSupport.fireEnterRule(num,inputState.guessing,data);
|
protected void | fireExitRule(int num, int ttype)
if (isDebugMode())
parserEventSupport.fireExitRule(num,inputState.guessing, ttype);
|
protected boolean | fireSemanticPredicateEvaluated(int type, int num, boolean condition)
if (isDebugMode())
return parserEventSupport.fireSemanticPredicateEvaluated(type,num,condition,inputState.guessing);
else
return condition;
|
protected void | fireSyntacticPredicateFailed()
if (isDebugMode())
parserEventSupport.fireSyntacticPredicateFailed(inputState.guessing);
|
protected void | fireSyntacticPredicateStarted()
if (isDebugMode())
parserEventSupport.fireSyntacticPredicateStarted(inputState.guessing);
|
protected void | fireSyntacticPredicateSucceeded()
if (isDebugMode())
parserEventSupport.fireSyntacticPredicateSucceeded(inputState.guessing);
|
public java.lang.String | getRuleName(int num)
return ruleNames[num];
|
public java.lang.String | getSemPredName(int num)
return semPredNames[num];
|
public synchronized void | goToSleep()
try {wait();}
catch (InterruptedException e) { }
|
public boolean | isDebugMode()
return !_notDebugMode;
|
protected persistence.antlr.Token | makeToken(int t)
// do something with char buffer???
// try {
// Token tok = (Token)tokenObjectClass.newInstance();
// tok.setType(t);
// // tok.setText(getText()); done in generated lexer now
// tok.setLine(line);
// return tok;
// }
// catch (InstantiationException ie) {
// panic("can't instantiate a Token");
// }
// catch (IllegalAccessException iae) {
// panic("Token class is not accessible");
// }
return super.makeToken(t);
|
public void | match(char c)
char la_1 = LA(1);
try {
super.match(c);
parserEventSupport.fireMatch(c, inputState.guessing);
}
catch (MismatchedCharException e) {
if (inputState.guessing == 0)
parserEventSupport.fireMismatch(la_1, c, inputState.guessing);
throw e;
}
|
public void | match(persistence.antlr.collections.impl.BitSet b)
String text = this.text.toString();
char la_1 = LA(1);
try {
super.match(b);
parserEventSupport.fireMatch(la_1, b, text, inputState.guessing);
}
catch (MismatchedCharException e) {
if (inputState.guessing == 0)
parserEventSupport.fireMismatch(la_1, b, text, inputState.guessing);
throw e;
}
|
public void | match(java.lang.String s)
StringBuffer la_s = new StringBuffer("");
int len = s.length();
// peek at the next len worth of characters
try {
for(int i = 1; i <= len; i++) {
la_s.append(super.LA(i));
}
}
catch(Exception ignoreMe) {}
try {
super.match(s);
parserEventSupport.fireMatch(s, inputState.guessing);
}
catch (MismatchedCharException e) {
if (inputState.guessing == 0)
parserEventSupport.fireMismatch(la_s.toString(), s, inputState.guessing);
throw e;
}
|
public void | matchNot(char c)
char la_1 = LA(1);
try {
super.matchNot(c);
parserEventSupport.fireMatchNot(la_1, c, inputState.guessing);
}
catch (MismatchedCharException e) {
if (inputState.guessing == 0)
parserEventSupport.fireMismatchNot(la_1, c, inputState.guessing);
throw e;
}
|
public void | matchRange(char c1, char c2)
char la_1 = LA(1);
try {
super.matchRange(c1,c2);
parserEventSupport.fireMatch(la_1, ""+c1+c2, inputState.guessing);
}
catch (MismatchedCharException e) {
if (inputState.guessing == 0)
parserEventSupport.fireMismatch(la_1, ""+c1+c2, inputState.guessing);
throw e;
}
|
public void | newline()
super.newline();
parserEventSupport.fireNewLine(getLine());
|
public void | removeMessageListener(persistence.antlr.debug.MessageListener l)
parserEventSupport.removeMessageListener(l);
|
public void | removeNewLineListener(persistence.antlr.debug.NewLineListener l)
parserEventSupport.removeNewLineListener(l);
|
public void | removeParserListener(persistence.antlr.debug.ParserListener l)
parserEventSupport.removeParserListener(l);
|
public void | removeParserMatchListener(persistence.antlr.debug.ParserMatchListener l)
parserEventSupport.removeParserMatchListener(l);
|
public void | removeParserTokenListener(persistence.antlr.debug.ParserTokenListener l)
parserEventSupport.removeParserTokenListener(l);
|
public void | removeSemanticPredicateListener(persistence.antlr.debug.SemanticPredicateListener l)
parserEventSupport.removeSemanticPredicateListener(l);
|
public void | removeSyntacticPredicateListener(persistence.antlr.debug.SyntacticPredicateListener l)
parserEventSupport.removeSyntacticPredicateListener(l);
|
public void | removeTraceListener(persistence.antlr.debug.TraceListener l)
parserEventSupport.removeTraceListener(l);
|
public void | reportError(persistence.antlr.MismatchedCharException e)Report exception errors caught in nextToken()
parserEventSupport.fireReportError(e);
super.reportError(e);
|
public void | reportError(java.lang.String s)Parser error-reporting function can be overridden in subclass
parserEventSupport.fireReportError(s);
super.reportError(s);
|
public void | reportWarning(java.lang.String s)Parser warning-reporting function can be overridden in subclass
parserEventSupport.fireReportWarning(s);
super.reportWarning(s);
|
public void | setDebugMode(boolean value)
_notDebugMode = !value;
|
public void | setupDebugging()
|
public synchronized void | wakeUp()
notify();
|