APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface LabeledStatementTree

extends StatementTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCLabeledStatement
Imports
javax.lang.model.element.Name

A tree node for a labeled statement. For example:
  label : statement
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.7 Labeled Statements

Method Summary

Modifier and TypeMethod and Description
public Name

Returns:

the label
getLabel
()

Returns the label.

public StatementTree

Returns:

the statement
getStatement
()

Returns the statement that is labeled.

Method Detail

getLabelback to summary
public Name getLabel()

Returns the label.

Returns:Name

the label

getStatementback to summary
public StatementTree getStatement()

Returns the statement that is labeled.

Returns:StatementTree

the statement