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() |
TemplateLiteralToken |
asTemplateLiteral() |
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()
public TemplateLiteralToken asTemplateLiteral()
Copyright © 2009-2019 Google. All Rights Reserved.