|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Token<T extends Enum<T> & HasPattern>
Generic token type generated by an instance of a LexicalAnalyzer.
This interface defines the minimal behavior for a token generated during
the lexical analysis phase of parsing. Specifically, token is a thing
that:
| Method Summary | |
|---|---|
String |
getContent()
The literal string matched when generating this token instance. |
T |
getType()
The type of the token. |
| Method Detail |
|---|
String getContent()
null or the empty string for EOF. (Whether null
is an acceptable token content is implementation-dependent.)
T getType()
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||