InputBufferEventpublic 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.
super(source);
| public InputBufferEvent(Object source, int type, char c, int lookaheadAmount)CharBufferEvent constructor comment.
super(source);
setValues(type, c, lookaheadAmount);
|
Methods Summary |
---|
public char | getChar()
return c;
| public int | getLookaheadAmount()
return lookaheadAmount;
| void | setChar(char c)
this.c = c;
| void | setLookaheadAmount(int la)
this.lookaheadAmount = la;
| void | setValues(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.String | toString()
return "CharBufferEvent [" +
(getType()==CONSUME?"CONSUME, ":"LA, ")+
getChar() + "," + getLookaheadAmount() + "]";
|
|