FileDocCategorySizeDatePackage
ParserTokenEvent.javaAPI DocGlassfish v2 API1006Wed Feb 08 12:31:30 GMT 2006persistence.antlr.debug

ParserTokenEvent

public class ParserTokenEvent extends Event

Fields Summary
private int
value
private int
amount
public static int
LA
public static int
CONSUME
Constructors Summary
public ParserTokenEvent(Object source)



	   
		super(source);
	
public ParserTokenEvent(Object source, int type, int amount, int value)

		super(source);
		setValues(type,amount,value);
	
Methods Summary
public intgetAmount()

		return amount;
	
public intgetValue()

		return value;
	
voidsetAmount(int amount)

		this.amount = amount;
	
voidsetValue(int value)

		this.value = value;
	
voidsetValues(int type, int amount, int value)
This should NOT be called from anyone other than ParserEventSupport!

		super.setValues(type);
		setAmount(amount);
		setValue(value);
	
public java.lang.StringtoString()

		if (getType()==LA)
			return "ParserTokenEvent [LA," + getAmount() + "," +
			       getValue() + "]"; 
		else
			return "ParserTokenEvent [consume,1," +
			       getValue() + "]";