Module jdk.compiler

Interface BreakTree

所有超级接口:
StatementTree, Tree

public interface BreakTree extends StatementTree
用于break语句的树节点。例如:
   break;

   break label ;
 
参见 Java语言规范:
14.15 break语句
自Java版本:
1.6
  • Nested Class Summary

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

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    返回此break语句的标签。

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

    accept, getKind
  • Method Details

    • getLabel

      Name getLabel()
      返回此break语句的标签。
      返回:
      标签