|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Token | |
groovy.sql | Groovy helper classes for working with SQL data as Groovy objects |
org.codehaus.groovy.ast.expr | AST nodes for Groovy expressions |
org.codehaus.groovy.syntax | Lexer, parser and trees. |
org.codehaus.groovy.syntax.lexer | Lexer. |
org.codehaus.groovy.syntax.parser | The main parser of Groovy code into the Groovy AST model (Abstract Syntax Tree) |
Uses of Token in groovy.sql |
Methods in groovy.sql with parameters of type Token | |
protected java.lang.String |
SqlWhereVisitor.tokenAsSql(Token token)
|
Uses of Token in org.codehaus.groovy.ast.expr |
Methods in org.codehaus.groovy.ast.expr that return Token | |
Token |
BinaryExpression.getOperation()
|
Token |
PostfixExpression.getOperation()
|
Token |
PrefixExpression.getOperation()
|
Constructors in org.codehaus.groovy.ast.expr with parameters of type Token | |
BinaryExpression(Expression leftExpression,
Token operation,
Expression rightExpression)
|
|
PostfixExpression(Expression expression,
Token operation)
|
|
PrefixExpression(Token operation,
Expression expression)
|
Uses of Token in org.codehaus.groovy.syntax |
Methods in org.codehaus.groovy.syntax that return Token | |
protected abstract Token |
AbstractTokenStream.nextToken()
Implemented by concrete subtypes, provides access to the next token in the underlying stream. |
Token |
AbstractTokenStream.la()
Returns the next token in the stream without consuming it. |
Token |
AbstractTokenStream.la(int k)
Returns the k th token in the stream without consuming
it (or any other unconsumed tokens). |
Token |
AbstractTokenStream.consume(int type)
Removes and returns the first token in the stream, provided it matches the specified type. |
static Token |
Token.newToken(int type,
int startLine,
int startColumn)
Creates the token of the given id |
static Token |
Token.newline(int startLine,
int startColumn)
Factory method for token for "\n". |
static Token |
Token.leftCurlyBrace(int startLine,
int startColumn)
Factory method for token for "{". |
static Token |
Token.rightCurlyBrace(int startLine,
int startColumn)
Factory method for token for "}". |
static Token |
Token.leftSquareBracket(int startLine,
int startColumn)
Factory method for token for "[". |
static Token |
Token.rightSquareBracket(int startLine,
int startColumn)
Factory method for token for "]". |
static Token |
Token.leftParenthesis(int startLine,
int startColumn)
Factory method for token for "(". |
static Token |
Token.rightParenthesis(int startLine,
int startColumn)
Factory method for token for ")". |
static Token |
Token.dot(int startLine,
int startColumn)
Factory method for token for ".". |
static Token |
Token.dotDot(int startLine,
int startColumn)
|
static Token |
Token.dotDotDot(int startLine,
int startColumn)
|
static Token |
Token.not(int startLine,
int startColumn)
Factory method for token for "!". |
static Token |
Token.compareNotEqual(int startLine,
int startColumn)
Factory method for token for "!=". |
static Token |
Token.findRegex(int startLine,
int startColumn)
Factory method for token for "~=". |
static Token |
Token.matchRegex(int startLine,
int startColumn)
Factory method for token for "~==". |
static Token |
Token.equal(int startLine,
int startColumn)
Factory method for token for "=". |
static Token |
Token.compareIdentical(int startLine,
int startColumn)
Factory method for token for "==". |
static Token |
Token.compareEqual(int startLine,
int startColumn)
Factory method for token for ":=". |
static Token |
Token.compareLessThan(int startLine,
int startColumn)
Factory method for token for "<". |
static Token |
Token.compareLessThanEqual(int startLine,
int startColumn)
Factory method for token for "<=". |
static Token |
Token.compareGreaterThan(int startLine,
int startColumn)
Factory method for token for ">". |
static Token |
Token.compareGreaterThanEqual(int startLine,
int startColumn)
Factory method for token for ">=". |
static Token |
Token.compareTo(int startLine,
int startColumn)
Factory method for token for "<=>". |
static Token |
Token.navigate(int startLine,
int startColumn)
Factory method for token for "->". |
static Token |
Token.logicalOr(int startLine,
int startColumn)
Factory method for token for "||". |
static Token |
Token.logicalAnd(int startLine,
int startColumn)
Factory method for token for "&&". |
static Token |
Token.plus(int startLine,
int startColumn)
Factory method for token for "+". |
static Token |
Token.plusPlus(int startLine,
int startColumn)
Factory method for token for "++". |
static Token |
Token.plusEqual(int startLine,
int startColumn)
Factory method for token for "+=". |
static Token |
Token.minus(int startLine,
int startColumn)
Factory method for token for "-". |
static Token |
Token.minusMinus(int startLine,
int startColumn)
Factory method for token for "--". |
static Token |
Token.minusEqual(int startLine,
int startColumn)
Factory method for token for "-=". |
static Token |
Token.divide(int startLine,
int startColumn)
Factory method for token for "/". |
static Token |
Token.divideEqual(int startLine,
int startColumn)
Factory method for token for "/=". |
static Token |
Token.mod(int startLine,
int startColumn)
Factory method for token for "%". |
static Token |
Token.modEqual(int startLine,
int startColumn)
Factory method for token for "%=". |
static Token |
Token.multiply(int startLine,
int startColumn)
Factory method for token for "*". |
static Token |
Token.multiplyEqual(int startLine,
int startColumn)
Factory method for token for "*=". |
static Token |
Token.comma(int startLine,
int startColumn)
|
static Token |
Token.colon(int startLine,
int startColumn)
Factory method for token for ":". |
static Token |
Token.semicolon(int startLine,
int startColumn)
Factory method for token for ";". |
static Token |
Token.question(int startLine,
int startColumn)
Factory method for token for "?". |
static Token |
Token.pipe(int startLine,
int startColumn)
Factory method for token for "|". |
static Token |
Token.leftShift(int startLine,
int startColumn)
Factory method for token for "<<". |
static Token |
Token.rightShift(int startLine,
int startColumn)
Factory method for token for ">>". |
static Token |
Token.doubleQuoteString(int startLine,
int startColumn,
java.lang.String text)
Factory method for token for double-quoted string. |
static Token |
Token.patternRegex(int startLine,
int startColumn)
Factory method for token for double-quoted string. |
static Token |
Token.singleQuoteString(int startLine,
int startColumn,
java.lang.String text)
Factory method for token for single-quoted string. |
static Token |
Token.identifier(int startLine,
int startColumn,
java.lang.String text)
Factory method for token for identifier. |
static Token |
Token.keyword(int startLine,
int startColumn,
java.lang.String text)
|
static Token |
Token.integerNumber(int startLine,
int startColumn,
java.lang.String text)
|
static Token |
Token.floatNumber(int startLine,
int startColumn,
java.lang.String text)
|
static Token |
Token.syntheticMethod()
|
static Token |
Token.syntheticParameterDeclaration()
|
static Token |
Token.syntheticMap()
|
static Token |
Token.syntheticList()
|
static Token |
Token.syntheticPostfix()
|
static Token |
Token.syntheticPrefix()
|
static Token |
Token.syntheticCast()
|
static Token |
Token.syntheticBlock()
|
static Token |
Token.syntheticClosure()
|
Token |
Token.toIdentifier()
|
protected static Token |
Token.newToken(int type,
java.lang.String text,
int startLine,
int startColumn)
Generic factory method for a token. |
Token |
TokenMismatchException.getUnexpectedToken()
|
Token |
TokenStream.la()
Looks-ahead to the next token. |
Token |
TokenStream.la(int k)
Looks-ahead to the k th token. |
Token |
TokenStream.consume(int type)
Consumes the next token. |
Constructors in org.codehaus.groovy.syntax with parameters of type Token | |
TokenException(java.lang.String message,
Token token)
|
|
TokenMismatchException(Token token,
int expectedType)
|
Uses of Token in org.codehaus.groovy.syntax.lexer |
Methods in org.codehaus.groovy.syntax.lexer that return Token | |
Token |
Lexer.nextToken()
Finds and returns (and consumes) the next token from the underlying stream. |
Token |
LexerTokenStream.nextToken()
Returns the next token from the Lexer . |
Uses of Token in org.codehaus.groovy.syntax.parser |
Methods in org.codehaus.groovy.syntax.parser that return Token | |
Token |
CSTNode.getToken()
Returns the token set on construction, or null. |
protected Token |
Parser.require(Token token)
Ensures that a Token is not null. |
protected Token |
Parser.la()
Returns (without consuming) the next non-newline token in the underlying token stream. |
protected Token |
Parser.la(int k)
Returns (without consuming any tokens) the next k th
non-newline token from the underlying token stream. |
protected Token |
Parser.consume(int type)
Consumes (and returns) the next token if it is of the specified type, or throws an UnexpectedTokenException . |
protected Token |
Parser.la_bare()
Returns (without consuming) the next token in the underlying token stream (newlines included). |
protected Token |
Parser.la_bare(int k)
Returns (without consuming any tokens) the next k th
token from the underlying token stream (newlines included). |
protected Token |
Parser.consume_bare(int type)
Consumes (and returns) the next token if it is of the specified type, or throws UnexpectedTokenException . |
Token |
UnexpectedTokenException.getUnexpectedToken()
|
Methods in org.codehaus.groovy.syntax.parser with parameters of type Token | |
void |
CSTNode.setToken(Token value)
Changes the token set on construction. |
protected Token |
Parser.require(Token token)
Ensures that a Token is not null. |
Constructors in org.codehaus.groovy.syntax.parser with parameters of type Token | |
CSTNode(Token token)
Initializes the node with the specified token. |
|
ParserException(java.lang.String message,
Token token)
|
|
UnexpectedTokenException(Token token,
int expectedType)
|
|
UnexpectedTokenException(Token token,
int[] expectedTypes)
|
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |