-
- All Superinterfaces:
StatementTree
,Tree
public interface BreakTree extends StatementTree
A tree node for abreak
statement. For example:break; break label ; break expression ;
- Since:
- 1.6
- See The Java™ Language Specification:
- section 14.15
-
-
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 Detail
-
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
-
-