All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----epp.Token
|
+----epp.LiteralToken
LiteralToken class is a token that describes a literal.
All literals are described as instances of this class.
The type of a literal is expressed by data of type Symbol,
and information about the contents of a literal is expressed by data of
type String called literalContents.
Examples: 123 (int "123") 1.2 (double "1.2") "abc" (string "abc") "\n" (string "\\n") 'c' (char "c")
LiteralToken, false otherwise.
literalContents if this token is a
LiteralToken.
literalTag if this token is a LiteralTag.
LiteralToken into a String
for debugging.
public LiteralToken(Symbol tag,
String contents)
public boolean isLiteralToken()
LiteralToken, false otherwise.
public Symbol literalTag()
literalTag if this token is a LiteralTag.
If this token is not a LiteralTag, a fatal error occurs.
public String literalContents()
literalContents if this token is a
LiteralToken.
If this token is not a LiteralToken, a fatal error occurs.
public String toString()
LiteralToken into a String
for debugging.
It converts the literalTag and literalContens
into a string, enclosing them together within parentheses.
For example, a LiteralToken that expresses 123 will
converted into a string such as "(int \"123\")".
All Packages Class Hierarchy This Package Previous Next Index