Module jdk.compiler

Interface BreakTree

All Superinterfaces:
StatementTree, Tree

public interface BreakTree
extends StatementTree
A tree node for a break statement. For example:
   break;

   break label ;

   break expression ;
 
See Java Language Specification:
14.15 The break Statement
Since:
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
    Name getLabel()
    Returns the label for this break statement.
    ExpressionTree getValue()
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method is modeling value breaks, which are part of a preview feature and may be removed if the preview feature is removed.

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

    accept, getKind
  • Method Details

    • getLabel

      Name getLabel()
      Returns the label for this break statement.
      Returns:
      the label
    • getValue

      @Deprecated(forRemoval=true,
                  since="12")
      ExpressionTree getValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method is modeling value breaks, which are part of a preview feature and may be removed if the preview feature is removed.
      Returns the expression for this break statement.
      Returns:
      the expression
      Since:
      12