|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
org.codehaus.groovy.syntax.Token |
consume(int type)
Consume the next token. |
String |
getSourceLocator()
|
org.codehaus.groovy.syntax.Token |
la()
Look-ahead to the next token. |
org.codehaus.groovy.syntax.Token |
la(int k)
Look-ahead to the k th token. |
Method Detail |
public org.codehaus.groovy.syntax.Token la() throws IOException, SyntaxException
This method is equivalent to la(1)
.
IOException
- If an error occurs attempting to lookahead
a token.
SyntaxException
la(int)
public org.codehaus.groovy.syntax.Token la(int k) throws IOException, SyntaxException
k
th token.
k
- Number of token to look ahead.
k
th token or null if no
more tokens available.
IOException
- If an error occurs attempting to lookahead
a token.
SyntaxException
public org.codehaus.groovy.syntax.Token consume(int type) throws IOException, SyntaxException
type
- The token type.
IOException
- If an error occurs attempting to consume
a token.
SyntaxException
public String getSourceLocator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |