JavaScript is disabled on your browser.
Skip navigation links
Java SE 21 & JDK 21
Overview
Module
Package
Class
Use
Tree
Preview
New
Deprecated
Index
Help
Summary:
Nested
Field
Constr
Method
Detail:
Field
Constr
Method
Summary:
Nested
|
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
SEARCH
Module
jdk.compiler
Package
com.sun.source.tree
Interface LiteralTree
所有超级接口:
ExpressionTree
,
Tree
public interface
LiteralTree
extends
ExpressionTree
用于字面表达式的树节点。使用
getKind
来确定字面表达式的类型。例如:
value
参见
Java语言规范
:
15.28 常量表达式
自版本:
1.6
Nested Class Summary
Nested classes/interfaces declared in interface com.sun.source.tree.
Tree
Tree.Kind
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
Object
getValue
()
返回字面表达式的值。
Methods declared in interface com.sun.source.tree.
Tree
accept
,
getKind
Method Details
getValue
Object
getValue
()
返回字面表达式的值。该值将是一个装箱的基本类型值、一个字符串,或者
null
。
返回:
该值