com.borland.jbuilder.jot
Interface JotCase

All Superinterfaces:
JotMarker, JotSourceElement, JotStatement

public interface JotCase
extends JotStatement

This interface represents a case label in a switch statement. See section 14.9 in the Java Language Specification for more information.


Method Summary
 JotExpression getExpression()
          Returns the case label's constant expression.
 JotStatement[] getStatements()
          Returns an array containing all statements following this case label but preceding any other labels in the switch statement.
 
Methods inherited from interface com.borland.jbuilder.jot.JotStatement
getCodeBlock
 
Methods inherited from interface com.borland.jbuilder.jot.JotMarker
addUserData, getEndPosition, getStartPosition, getUserData
 
Methods inherited from interface com.borland.jbuilder.jot.JotSourceElement
getIndentLevel, getParent, getText, isModified, setModified, setText
 

Method Detail

getExpression

public JotExpression getExpression()
Returns the case label's constant expression.

getStatements

public JotStatement[] getStatements()
Returns an array containing all statements following this case label but preceding any other labels in the switch statement.
Specified by:
getStatements in interface JotStatement