Extension SDK

oracle.jdeveloper.jot
Interface JotCase

All Superinterfaces:
JotBlockElement, JotElement, JotStatement

public interface JotCase
extends JotStatement

A JotCase represents a case or default clause inside of a switch statement.

Since:
5.0
See Also:
JotSwitch, "Section 14.10 of the Java Language Specification."

Field Summary
 
Fields inherited from interface oracle.jdeveloper.jot.JotStatement
BLOCK_STATEMENT, BREAK_STATEMENT, CASE_CLAUSE, CONTINUE_STATEMENT, DO_STATEMENT, ELSE_CLAUSE, EMPTY_STATEMENT, EXPRESSION_STATEMENT, FOR_STATEMENT, IF_STATEMENT, RETURN_STATEMENT, SWITCH_STATEMENT, SYNCHRONIZED_STATEMENT, THROW_STATEMENT, TRY_STATEMENT, WHILE_STATEMENT
 
Fields inherited from interface oracle.jdeveloper.jot.JotBlockElement
LOCAL_CLASS_TYPE, STATEMENT_TYPE, VARIABLE_DECLARATION_TYPE
 
Method Summary
 java.lang.String getLabel()
          Retrieves the label associated with this JotCase.
 JotExpression getLabelExpression()
          Retrieves the case label as a JotExpression.
 void setLabel(java.lang.String label)
          Sets the label associated with this JotCase.
 
Methods inherited from interface oracle.jdeveloper.jot.JotStatement
addLabel, getAsBlock, getAsBreak, getAsCase, getAsContinue, getAsDo, getAsExpressionStatement, getAsFor, getAsIf, getAsReturn, getAsSwitch, getAsSynchronized, getAsThrow, getAsTry, getAsWhile, getLabels, getStatementText, getStatementType, removeLabel
 
Methods inherited from interface oracle.jdeveloper.jot.JotBlockElement
getAsLocalClass, getAsStatement, getAsVariableDeclaration, getElementType
 
Methods inherited from interface oracle.jdeveloper.jot.JotElement
getElementName, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent
 

Method Detail

getLabel

public java.lang.String getLabel()
Retrieves the label associated with this JotCase. If this JotCase represents a default clause, the label is null.

Returns:
the label of this case clause, or null if this JotCase represents a default clause.

setLabel

public void setLabel(java.lang.String label)
Sets the label associated with this JotCase.

Parameters:
label - the label for the case clause, or null if this JotCase represents a default clause.

getLabelExpression

public JotExpression getLabelExpression()
Retrieves the case label as a JotExpression. If this JotCase represents a default clause, the label is null.

Returns:
the label of this case clause as a JotExpression.

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.