ParserTokenEventpublic 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 int | getAmount()
return amount;
| public int | getValue()
return value;
| void | setAmount(int amount)
this.amount = amount;
| void | setValue(int value)
this.value = value;
| void | setValues(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.String | toString()
if (getType()==LA)
return "ParserTokenEvent [LA," + getAmount() + "," +
getValue() + "]";
else
return "ParserTokenEvent [consume,1," +
getValue() + "]";
|
|