oracle.jdeveloper.jot
Interface JotReturn
- All Superinterfaces:
- JotBlockElement, JotElement, JotStatement
- public interface JotReturn
- extends JotStatement
The JotReturn
interface represents a return
statement. A return statement can optionally have an expression associated
with in, The statement has the form:
return;
return isValid();
- Since:
- 5.0
- See Also:
- "Section 14.16 of the Java Language Specification Second Edition"
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 |
Method Summary |
JotExpression |
getExpression()
Retrieves the expression associated with this return statement. |
void |
setExpression(java.lang.String exp)
Sets the expression associated with this return statement. |
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 |
getExpression
public JotExpression getExpression()
- Retrieves the expression associated with this return statement. If this
statement has no association,
null
is returned.
setExpression
public void setExpression(java.lang.String exp)
- Sets the expression associated with this return statement. The existing
expression, if present, is removed.
- Parameters:
exp
- the new expression string, or null
if the
statement should not have an expression.
Copyright ©1997, 2003, Oracle. All rights reserved.