public class Token
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
SourceRange |
location |
TokenType |
type |
Constructor and Description |
---|
Token(TokenType type,
SourceRange location) |
Modifier and Type | Method and Description |
---|---|
IdentifierToken |
asIdentifier() |
LiteralToken |
asLiteral() |
SourcePosition |
getStart() |
java.lang.String |
toString() |
public final SourceRange location
public final TokenType type
public Token(TokenType type, SourceRange location)
public SourcePosition getStart()
public java.lang.String toString()
toString
in class java.lang.Object
public IdentifierToken asIdentifier()
public LiteralToken asLiteral()
Copyright © 2009-2018 Google. All Rights Reserved.