Interface GotoTree

All Superinterfaces:
StatementTree, Tree
All Known Subinterfaces:
BreakTree, ContinueTree

@Deprecated(since="11",
            forRemoval=true)
public interface GotoTree
extends StatementTree
Deprecated, for removal: This API element is subject to removal in a future version.
Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.
A tree node for a statement that jumps to a target. Note that ECMAScript does not support a goto statement. But, this Tree type serves as a super interface for BreakTree and ContinueTree.
Since:
9
  • Nested Class Summary

    Nested classes/interfaces declared in interface jdk.nashorn.api.tree.Tree

    Tree.Kind
  • Method Summary

    Modifier and Type Method Description
    String getLabel()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Label associated with this goto statement.

    Methods declared in interface jdk.nashorn.api.tree.Tree

    accept, getEndPosition, getKind, getStartPosition
  • Method Details

    • getLabel

      String getLabel()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Label associated with this goto statement. This is null if there is no label associated with this goto statement.
      Returns:
      label associated with this goto statement.