| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public TokenBuffer | |
| public TokenBuffer | |
| public TokenBuffer | |
| public TokenBuffer | Returns: this token bufferthe other token buffer other)Append the contents of another token buffer to this one |
| public TokenBuffer | Returns: the new token bufferthe index of the first element (inclusive) fromIndex, int the index of the last element (exclusive) toIndex)Create a new token buffer that contains a portion of this one between
the specified |
| public List | |
| public boolean | |
| public TokenBuffer | |
| public TokenBuffer | |
| public TokenBuffer | |
| public TokenBuffer | Returns: this token bufferthe other token buffer other)Prepend the contents of another token buffer to this one |
| public String |
| tokens | back to summary |
|---|---|
| private final List<Token> tokens | |
| TokenBuffer | back to summary |
|---|---|
| public TokenBuffer() Create an empty token buffer | |
| TokenBuffer | back to summary |
|---|---|
| private TokenBuffer(List<Token> tokens) Create a token buffer with the given list of tokens | |
| append | back to summary |
|---|---|
| public TokenBuffer append(Token token) Append a token to the buffer
| |
| append | back to summary |
|---|---|
| public TokenBuffer append(String text, TextToken. Append a text token with a given type to the buffer
| |
| append | back to summary |
|---|---|
| public TokenBuffer append(String text, TextToken. Append a text token with a given type and formatting attributes to the buffer
| |
| append | back to summary |
|---|---|
| public TokenBuffer append(TokenBuffer other) Append the contents of another token buffer to this one
| |
| copy | back to summary |
|---|---|
| public TokenBuffer copy(int fromIndex, int toIndex) Create a new token buffer that contains a portion of this one between
the specified
| |
| getTokens | back to summary |
|---|---|
| public List Get the list of tokens managed by this buffer | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Test if the buffer is empty
| |
| prepend | back to summary |
|---|---|
| public TokenBuffer prepend(Token token) Prepend a token to the buffer
| |
| prepend | back to summary |
|---|---|
| public TokenBuffer prepend(String text, TextToken. Prepend a text token with a given type to the buffer
| |
| prepend | back to summary |
|---|---|
| public TokenBuffer prepend(String text, TextToken. Prepend a text token with a given type and formatting attributes to the buffer
| |
| prepend | back to summary |
|---|---|
| public TokenBuffer prepend(TokenBuffer other) Prepend the contents of another token buffer to this one
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |