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 ;
     
    Since:
    1.6
    See The Java™ Language Specification:
    section 14.15
    • 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.
    • Method Detail

      • 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