Interface LiteralTree
- All Superinterfaces:
ExpressionTree
,Tree
A tree node for a literal expression.
Use
getKind
to determine the kind of literal.
For example:
value
- See Java Language Specification:
-
15.29 Constant Expressions
- Since:
- 1.6
-
Nested Class Summary
-
Method Summary
-
Method Details
-
getValue
Object getValue()Returns the value of the literal expression. The value will be a boxed primitive value, a String, ornull
.- Returns:
- the value
-