FileDocCategorySizeDatePackage
TraceEvent.javaAPI DocGlassfish v2 API1002Wed Feb 08 12:31:32 GMT 2006persistence.antlr.debug

TraceEvent

public 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 intgetData()

		return data;
	
public intgetRuleNum()

		return ruleNum;
	
voidsetData(int data)

		this.data = data;
	
voidsetRuleNum(int ruleNum)

		this.ruleNum = ruleNum;
	
voidsetValues(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.StringtoString()

		return "ParserTraceEvent [" + 
		       (getType()==ENTER?"enter,":"exit,") +
		       getRuleNum() + "," + getGuessing() +"]";