TraceEventpublic class TraceEvent extends GuessingEvent
Fields Summary |
---|
private int | ruleNum | private int | data | public static int | ENTER | public static int | EXIT | public static int | DONE_PARSING |
Constructors Summary |
---|
public TraceEvent(Object source)
super(source);
| public TraceEvent(Object source, int type, int ruleNum, int guessing, int data)
super(source);
setValues(type, ruleNum, guessing, data);
|
Methods Summary |
---|
public int | getData()
return data;
| public int | getRuleNum()
return ruleNum;
| void | setData(int data)
this.data = data;
| void | setRuleNum(int ruleNum)
this.ruleNum = ruleNum;
| void | setValues(int type, int ruleNum, int guessing, int data)This should NOT be called from anyone other than ParserEventSupport!
super.setValues(type, guessing);
setRuleNum(ruleNum);
setData(data);
| public java.lang.String | toString()
return "ParserTraceEvent [" +
(getType()==ENTER?"enter,":"exit,") +
getRuleNum() + "," + getGuessing() +"]";
|
|