Top Description Methods
com.sun.source.tree

public Interface LiteralTree

extends ExpressionTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCLiteral

A tree node for a literal expression. Use getKind to determine the kind of literal. For example:
  value
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.28 Constant Expressions

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the value
getValue
()

Returns the value of the literal expression.

Method Detail

getValueback to summary
public Object getValue()

Returns the value of the literal expression. The value will be a boxed primitive value, a String, or null.

Returns:Object

the value