Module jdk.compiler

Interface ConstantCaseLabelTree

所有超接口:
CaseLabelTree, Tree

public interface ConstantCaseLabelTree extends CaseLabelTree
一个引用常量表达式的case标签元素
自:
21
  • Nested Class Summary

    Nested classes/interfaces declared in interface com.sun.source.tree.Tree

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    case的常量表达式。

    Methods declared in interface com.sun.source.tree.Tree

    accept, getKind
  • Method Details

    • getConstantExpression

      ExpressionTree getConstantExpression()
      case的常量表达式。
      返回:
      常量表达式