Package com.sun.tools.corba.ee.idl
Class TokenBuffer
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.TokenBuffer
-
class TokenBuffer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Token[]_bufferprivate int_currPosprivate int_sizeprivate intDEFAULT_SIZE
-
Constructor Summary
Constructors Constructor Description TokenBuffer()TokenBuffer(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Tokencurrent()Return the token most recently inserted into the buffer (i.e., the head of the buffer.)(package private) voidinsert(Token token)Inserts a token at the head of the buffer.(package private) TokenlookBack(int i)Returns the token residing "i" elements from the head of the buffer.
-
-
-
Field Detail
-
DEFAULT_SIZE
private final int DEFAULT_SIZE
- See Also:
- Constant Field Values
-
_size
private int _size
-
_buffer
private Token[] _buffer
-
_currPos
private int _currPos
-
-
Method Detail
-
insert
void insert(Token token)
Inserts a token at the head of the buffer.
-
lookBack
Token lookBack(int i)
Returns the token residing "i" elements from the head of the buffer.
-
current
Token current()
Return the token most recently inserted into the buffer (i.e., the head of the buffer.)
-
-