|
|||||||||||
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 |
Fields in org.codehaus.groovy.ast.expr declared as Token | |
private Token |
PrefixExpression.operation
|
private Token |
PostfixExpression.operation
|
private Token |
BinaryExpression.operation
|
Methods in org.codehaus.groovy.ast.expr that return Token | |
Token |
PrefixExpression.getOperation()
|
Token |
PostfixExpression.getOperation()
|
Token |
BinaryExpression.getOperation()
|
Methods in org.codehaus.groovy.ast.expr with parameters of type Token | |
private java.lang.Class |
BinaryExpression.resolveThisType(Token operation)
|
Constructors in org.codehaus.groovy.ast.expr with parameters of type Token | |
PrefixExpression(Token operation,
Expression expression)
|
|
PostfixExpression(Expression expression,
Token operation)
|
|
BinaryExpression(Expression leftExpression,
Token operation,
Expression rightExpression)
|
Uses of Token in org.codehaus.groovy.syntax |
Fields in org.codehaus.groovy.syntax declared as Token | |
private Token |
TokenMismatchException.unexpectedToken
|
private Token |
TokenException.token
|
static Token |
Token.NULL
|
static Token |
Token.EOF
|
private Token[] |
AbstractTokenStream.buf
|
Methods in org.codehaus.groovy.syntax that return Token | |
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. |
Token |
TokenMismatchException.getUnexpectedToken()
|
Token |
Token.dup()
Returns a copy of this Token. |
Token |
Token.getRoot()
Returns the root of the node. |
static Token |
Token.newKeyword(java.lang.String text,
int startLine,
int startColumn)
Creates a token that represents a keyword. |
static Token |
Token.newString(java.lang.String text,
int startLine,
int startColumn)
Creates a token that represents a double-quoted string. |
static Token |
Token.newIdentifier(java.lang.String text,
int startLine,
int startColumn)
Creates a token that represents an identifier. |
static Token |
Token.newInteger(java.lang.String text,
int startLine,
int startColumn)
Creates a token that represents an integer. |
static Token |
Token.newDecimal(java.lang.String text,
int startLine,
int startColumn)
Creates a token that represents a decimal number. |
static Token |
Token.newSymbol(int type,
int startLine,
int startColumn)
Creates a token that represents a symbol, using a library for the text. |
static Token |
Token.newSymbol(java.lang.String type,
int startLine,
int startColumn)
Creates a token that represents a symbol, using a library for the type. |
static Token |
Token.newPlaceholder(int type)
Creates a token with the specified meaning. |
Token |
Reduction.getRoot()
Returns the root of the node, the Token that indicates it's type. |
abstract Token |
CSTNode.getRoot()
Returns the root of the node. |
Token |
CSTNode.getRoot(boolean safe)
Returns the root of the node, the Token that indicates it's type. |
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. |
Token |
AbstractTokenStream.consume()
Removes and returns the first token in the stream, provided it isn't the EOF. |
Methods in org.codehaus.groovy.syntax with parameters of type Token | |
private static int |
TokenException.getColumn(Token token)
|
private static int |
TokenException.getLine(Token token)
|
Constructors in org.codehaus.groovy.syntax with parameters of type Token | |
TokenMismatchException(Token token,
int expectedType)
|
|
TokenException(java.lang.String message,
Token token)
|
|
Reduction(Token root)
Initializes the Reduction with the specified root. |
Uses of Token in org.codehaus.groovy.syntax.lexer |
Methods in org.codehaus.groovy.syntax.lexer that return Token | |
Token |
StringLexer.undelegatedNextToken()
Returns a single STRING, then null. |
Token |
LexerTokenStream.nextToken()
Returns the next token from the Lexer . |
Token |
LexerBase.nextToken()
Finds and returns (consuming) the next token from the underlying stream. |
protected Token |
LexerBase.undelegatedNextToken()
Does undelegated nextToken() operations. |
protected Token |
LexerBase.tokenizeEOL()
Process an end-of-line marker and returns a NEWLINE token. |
protected Token |
LexerBase.symbol(int type,
int columnOffset)
Creates a new symbol token, and allows you to alter the starting column. |
protected Token |
LexerBase.symbol(int type)
Creates a new symbol token. |
Token |
Lexer.nextToken()
Finds and returns (consuming) the next token from the underlying stream. |
protected Token |
GStringLexer.undelegatedNextToken()
Finds and returns (consuming) the next token from the underlying stream. |
Token |
GroovyLexerBase.nextToken()
Finds and returns (and consumes) the next token from the underlying stream. |
Token |
GroovyExpressionLexer.nextToken()
Finds and returns (and consumes) the next token from the underlying stream. |
Uses of Token in org.codehaus.groovy.syntax.parser |
Fields in org.codehaus.groovy.syntax.parser declared as Token | |
private Token |
UnexpectedTokenException.unexpectedToken
|
Methods in org.codehaus.groovy.syntax.parser that return Token | |
Token |
UnexpectedTokenException.getUnexpectedToken()
|
protected Token |
Parser.nameDeclaration(boolean significantNewlines)
Processes a name that is valid for declarations. |
protected Token |
Parser.nameReference(boolean significantNewlines)
Processes a reference to a declared name. |
protected Token |
Parser.la(int k,
boolean significantNewlines)
Returns (without consuming) the next kth token in the underlying token stream. |
protected Token |
Parser.la(int k)
Synonym for la( k, false ) . |
protected Token |
Parser.la(boolean significantNewlines)
Synonym for la( 1, significantNewlines ) . |
protected Token |
Parser.la()
Synonym for la( 1, false ) . |
protected Token |
Parser.la(ExpressionStack stack)
Special la() used by the expression parser. |
protected Token |
Parser.consume(int type,
boolean significantNewlines)
Consumes (and returns) the next token if it is of the specified type. |
protected Token |
Parser.consume(int type)
A synonym for consume( type, false ) . |
protected Token |
Parser.consume()
A synonym for consume( Types.ANY, false ) . |
protected Token |
Parser.consume(boolean significantNewlines)
A synonym for consume( Types.ANY, significantNewlines ) . |
Methods in org.codehaus.groovy.syntax.parser with parameters of type Token | |
Reduction |
Parser.propertyDeclaration(Reduction modifiers,
CSTNode type,
Token identifier)
Processes a class/interface property, including the optional initialization clause. |
Reduction |
Parser.methodDeclaration(Reduction modifiers,
CSTNode type,
Token identifier,
boolean emptyOnly)
Processes a class/interface method. |
protected UnexpectedTokenException |
Parser.error(Token found,
int[] expectedTypes,
boolean throwIt,
java.lang.String comment)
Reports an error assembled from parts. |
protected void |
Parser.error(Token found,
java.lang.String comment)
A synonym for error( found, null, true, comment ) . |
Constructors in org.codehaus.groovy.syntax.parser with parameters of type Token | |
UnexpectedTokenException(Token token)
|
|
UnexpectedTokenException(Token token,
int expectedType)
|
|
UnexpectedTokenException(Token token,
int[] expectedTypes)
|
|
UnexpectedTokenException(Token token,
int[] expectedTypes,
java.lang.String comment)
|
|
ParserException(java.lang.String message,
Token token)
|
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |