- All Superinterfaces:
StatementTree
,Tree
A tree node for a labeled statement.
For example:
label : statement
- Since:
- 9
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Returns the label associated with this statement.Returns the statement being labeled.Methods inherited from interface org.openjdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
Method Details
-
getLabel
String getLabel()Returns the label associated with this statement.- Returns:
- the label
-
getStatement
StatementTree getStatement()Returns the statement being labeled.- Returns:
- the statement labeled
-