Interface LiteralTree

All Superinterfaces:
ExpressionTree, Tree

public interface LiteralTree extends ExpressionTree
A tree node for a literal expression. Use getKind to determine the kind of literal. For example:
   value
 
Since:
9
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.openjdk.nashorn.api.tree.Tree

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of this literal.

    Methods inherited from interface org.openjdk.nashorn.api.tree.Tree

    accept, getEndPosition, getKind, getStartPosition
  • Method Details

    • getValue

      Object getValue()
      Returns the value of this literal.
      Returns:
      the value of this literal