- 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
-
Method Summary
Modifier and Type Method Description Name
getLabel()
Returns the label for thisbreak
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 Details
-
getLabel
Name getLabel()
Returns the label for thisbreak
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 thisbreak
statement.- Returns:
- the expression
- Since:
- 12
-