Top Description Methods
com.sun.source.tree

public Interface SwitchTree

extends StatementTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCSwitch
Imports
java.util.List

A tree node for a switch statement. For example:
  switch ( expression ) {
    cases
  }
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.11 The switch Statement

Method Summary

Modifier and TypeMethod and Description
public List<? extends CaseTree>

Returns:

the cases
getCases
()

Returns the cases for the switch statement.

public ExpressionTree

Returns:

the expression
getExpression
()

Returns the expression for the switch statement.

Method Detail

getCasesback to summary
public List<? extends CaseTree> getCases()

Returns the cases for the switch statement.

Returns:List<? extends CaseTree>

the cases

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression for the switch statement.

Returns:ExpressionTree

the expression