Class LiteralToken
- java.lang.Object
-
- com.google.javascript.jscomp.parsing.parser.Token
-
- com.google.javascript.jscomp.parsing.parser.LiteralToken
-
- Direct Known Subclasses:
StringLiteralToken
,TemplateLiteralToken
public class LiteralToken extends Token
A token representing a javascript literal. Includes string, regexp, and number literals. Boolean and null literals are represented as regular keyword tokens. The value just includes the raw lexeme. For string literals it includes the beginning and ending delimiters. TODO: Regexp literals should have their own token type. TODO: A way to get the processed value, rather than the raw value.
-
-
Constructor Summary
Constructors Constructor Description LiteralToken(TokenType type, java.lang.String value, SourceRange location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
Methods inherited from class com.google.javascript.jscomp.parsing.parser.Token
asIdentifier, asLiteral, asTemplateLiteral, getStart
-
-
-
-
Constructor Detail
-
LiteralToken
public LiteralToken(TokenType type, java.lang.String value, SourceRange location)
-
-