Uses of Class
org.codehaus.groovy.syntax.Token

Packages that use Token
org.codehaus.groovy.ast.expr   
org.codehaus.groovy.syntax   
org.codehaus.groovy.syntax.lexer   
org.codehaus.groovy.syntax.parser   
 

Uses of Token in org.codehaus.groovy.ast.expr
 

Methods in org.codehaus.groovy.ast.expr that return Token
 Token PostfixExpression.getOperation()
           
 Token PrefixExpression.getOperation()
           
 Token BinaryExpression.getOperation()
           
 

Constructors in org.codehaus.groovy.ast.expr with parameters of type Token
PostfixExpression(Expression expression, Token operation)
           
PrefixExpression(Token operation, Expression expression)
           
BinaryExpression(Expression leftExpression, Token operation, Expression rightExpression)
           
 

Uses of Token in org.codehaus.groovy.syntax
 

Fields in org.codehaus.groovy.syntax declared as Token
static Token Token.NULL
           
static Token Token.EOF
           
 

Methods in org.codehaus.groovy.syntax that return Token
 Token TokenMismatchException.getUnexpectedToken()
           
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 kth 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.
 Token TokenStream.la()
          Looks-ahead to the next token.
 Token TokenStream.la(int k)
          Looks-ahead to the kth token.
 Token TokenStream.consume(int type)
          Consumes the next token.
 Token Reduction.getRoot()
          Returns the root of the node, the Token that indicates it's type.
 Token Token.dup()
          Returns a copy of this Token.
 Token Token.getRoot()
          Returns the root of the node.
static Token Token.newKeyword(String text, int startLine, int startColumn)
          Creates a token that represents a keyword.
static Token Token.newString(String text, int startLine, int startColumn)
          Creates a token that represents a double-quoted string.
static Token Token.newIdentifier(String text, int startLine, int startColumn)
          Creates a token that represents an identifier.
static Token Token.newInteger(String text, int startLine, int startColumn)
          Creates a token that represents an integer.
static Token Token.newDecimal(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(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.
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.
 

Constructors in org.codehaus.groovy.syntax with parameters of type Token
TokenMismatchException(Token token, int expectedType)
           
TokenException(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 LexerTokenStream.nextToken()
          Returns the next token from the Lexer.
 Token StringLexer.undelegatedNextToken()
          Returns a single STRING, then null.
 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.
 Token Lexer.nextToken()
          Finds and returns (consuming) the next token from the underlying stream.
 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.
protected  Token GStringLexer.undelegatedNextToken()
          Finds and returns (consuming) the next token from the underlying stream.
 

Uses of Token in org.codehaus.groovy.syntax.parser
 

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, String comment)
          Reports an error assembled from parts.
protected  void Parser.error(Token found, 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, String comment)
           
ParserException(String message, Token token)
           
 



Copyright © 2003-2004 The Codehaus. All Rights Reserved.