This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Method and Description |
---|---|
public int | |
public void | |
public Queue | |
public Position. | Returns: a LineMapBuild a map for translating between line numbers and positions in the input. |
public void | |
public Tokens. | |
public void | |
public Tokens. | |
public Tokens. | |
public Tokens. |
errPos | back to summary |
---|---|
public int errPos() Return the position where a lexical error occurred; |
errPos | back to summary |
---|---|
public void errPos(int pos) Set the position where a lexical error occurred; |
getDocComments | back to summary |
---|---|
public Queue Returns a queue for the documentation comments encountered in a compilation unit. Comments may be added to this queue by the implementation; clients may remove them from the queue as they are analyzed. Note all comments may also be associated with the following token. |
getLineMap | back to summary |
---|---|
public Position. Build a map for translating between line numbers and positions in the input. |
nextToken | back to summary |
---|---|
public void nextToken() Consume the next token. |
prevToken | back to summary |
---|---|
public Tokens. Return the last character position of the previous token. |
setPrevToken | back to summary |
---|---|
public void setPrevToken(Tokens. Sets the previous token. |
split | back to summary |
---|---|
public Tokens. Splits the current token in two and return the first (split) token. For instance '<<<' is split into two tokens '<' and '<<' respectively, and the latter is returned. |
token | back to summary |
---|---|
public Tokens. Return current token. |
token | back to summary |
---|---|
public Tokens. Return token with given lookahead. |