FileDocCategorySizeDatePackage
InputBufferEvent.javaAPI DocGlassfish v2 API1196Wed Feb 08 12:31:18 GMT 2006persistence.antlr.debug

InputBufferEvent

public class InputBufferEvent extends Event

Fields Summary
char
c
int
lookaheadAmount
public static final int
CONSUME
public static final int
LA
public static final int
MARK
public static final int
REWIND
Constructors Summary
public InputBufferEvent(Object source)
CharBufferEvent constructor comment.

param
source java.lang.Object



       
   
	super(source);
public InputBufferEvent(Object source, int type, char c, int lookaheadAmount)
CharBufferEvent constructor comment.

param
source java.lang.Object

	super(source);
	setValues(type, c, lookaheadAmount);
Methods Summary
public chargetChar()

		return c;
	
public intgetLookaheadAmount()

		return lookaheadAmount;
	
voidsetChar(char c)

		this.c = c;
	
voidsetLookaheadAmount(int la)

		this.lookaheadAmount = la;
	
voidsetValues(int type, char c, int la)
This should NOT be called from anyone other than ParserEventSupport!

		super.setValues(type);
		setChar(c);
		setLookaheadAmount(la);
	
public java.lang.StringtoString()

		return "CharBufferEvent [" + 
			(getType()==CONSUME?"CONSUME, ":"LA, ")+
		getChar() + "," + getLookaheadAmount() + "]";