|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JotHasChildStatement
interface describes statements that
can contain a single sub-statement.
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 | |
JotBlockStatement |
addBlock()
Adds a new block statement as the sub-statement. |
JotBreak |
addBreak()
Adds a new break statement as the sub-statement. |
JotContinue |
addContinue()
Adds a new continue statement as the sub-statement. |
JotDo |
addDo(java.lang.String condition)
Adds a new do statement as the sub-statement. |
JotExpressionStatement |
addExpressionStatement(JotStatementExpression exp)
Adds a new expression statement as the sub-statement. |
JotExpressionStatement |
addExpressionStatement(java.lang.String exp)
Adds a new expression statement as the sub-statement. |
JotFor |
addFor()
Adds a new for statement as the sub-statement. |
JotIf |
addIf(java.lang.String exp)
Adds a new if statement as the sub-statement. |
JotReturn |
addReturn(java.lang.String exp)
Adds a new return statement as the sub-statement. |
JotStatement |
addStatement(java.lang.String text)
Adds a new statement as the sub-statement. |
JotSwitch |
addSwitch(java.lang.String exp)
Adds a new switch statement as the sub-statement. |
JotSynchronized |
addSynchronized(java.lang.String exp)
Adds a new synchronized statement as the sub-statement. |
JotThrow |
addThrow(java.lang.String exp)
Adds a new throw statement as the sub-statement. |
JotTry |
addTry()
Adds a new try statement as the sub-statement. |
JotWhile |
addWhile(java.lang.String condition)
Adds a new while statement as the sub-statement. |
JotAssignment |
createAssignment(java.lang.String variable,
java.lang.String value)
Creates a new assignment. |
JotMethodCall |
createMethodCall(java.lang.String object,
java.lang.String method)
Creates a new method call. |
JotNestedExpression |
createNestedMethodCall(JotMethodCall firstCall,
JotMethodCall secondCall)
Creates a new nested method call. |
JotStatement |
getChildStatement()
Retrieves the sub-statement associated with this 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 |
Methods inherited from interface oracle.jdeveloper.jot.JotBlockElement |
getAsLocalClass, getAsStatement, getAsVariableDeclaration, getElementType |
Methods inherited from interface oracle.jdeveloper.jot.JotCodeElement |
addPrecedingComment, childrenContainErrors, delete, getContainingJotFile, getLeftWhitespace, getLength, getRightWhitespace, isInError, isSource, setLeftWhitespace, setRightWhitespace |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getChildren, getContainedElements, getElementName, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Method Detail |
public JotBlockStatement addBlock() throws JotInvalidElementException
JotBlockStatement
representing the new block.
JotInvalidElementException
public JotBreak addBreak() throws JotInvalidElementException
JotBreak
representing the break statement.
JotInvalidElementException
public JotContinue addContinue() throws JotInvalidElementException
JotContinue
representing the continue statement.
JotInvalidElementException
public JotReturn addReturn(java.lang.String exp) throws JotInvalidElementException
exp
- the return expression; null
create return without
a value;
JotReturn
representing the return statement.
JotInvalidElementException
public JotThrow addThrow(java.lang.String exp) throws JotInvalidElementException
exp
- the value being thrown.
JotThrow
representing the throw statement.
JotInvalidElementException
public JotDo addDo(java.lang.String condition) throws JotInvalidElementException
condition
- the conditional expression.
JotDo
representing the do statement.
JotInvalidElementException
public JotWhile addWhile(java.lang.String condition) throws JotInvalidElementException
condition
- the conditional expression.
JotWhile
representing the while statement.
JotInvalidElementException
public JotIf addIf(java.lang.String exp) throws JotInvalidElementException
exp
- the conditional expression.
JotIf
representing the if statement.
JotInvalidElementException
public JotFor addFor() throws JotInvalidElementException
JotFor
representing the for statement.
JotInvalidElementException
public JotSwitch addSwitch(java.lang.String exp) throws JotInvalidElementException
exp
- the expression being switched on.
JotSwitch
representing the switch statement.
JotInvalidElementException
public JotSynchronized addSynchronized(java.lang.String exp) throws JotInvalidElementException
exp
- the expression being synchronized on.
JotSynchronized
representing the synchronized statement.
JotInvalidElementException
public JotExpressionStatement addExpressionStatement(java.lang.String exp) throws JotInvalidElementException
exp
- the expression being wrapped.
JotExpressionStatement
representing the expression statement.
JotInvalidElementException
public JotExpressionStatement addExpressionStatement(JotStatementExpression exp) throws JotInvalidElementException
exp
- the statement expression to wrap.
JotExpressionStatement
representing the expression statement.
JotInvalidElementException
public JotTry addTry() throws JotInvalidElementException
JotTry
representing the try statement.
JotInvalidElementException
public JotStatement addStatement(java.lang.String text) throws JotInvalidElementException, JotException
text
- the text of the new statement.
JotException
- if the new text cannot be parsed into a single
statement.
JotInvalidElementException
public JotMethodCall createMethodCall(java.lang.String object, java.lang.String method) throws JotInvalidElementException
object
- the object on which the method call is being made.method
- the name of the method being invoked.
JotMethodCall
representing the method call.
JotInvalidElementException
addExpressionStatement(JotStatementExpression)
,
createNestedMethodCall(JotMethodCall, JotMethodCall)
public JotNestedExpression createNestedMethodCall(JotMethodCall firstCall, JotMethodCall secondCall) throws JotInvalidElementException
foo().bar()
.
firstCall
- the first method call.secondCall
- the second method call.
JotNestedExpression
representing the nested method
call.
JotInvalidElementException
createMethodCall(String, String)
public JotAssignment createAssignment(java.lang.String variable, java.lang.String value) throws JotInvalidElementException
variable
- the variable (or left side) of the assignment.value
- the expression being assigned to the variable.
JotAssignment
representing the assignment.
JotInvalidElementException
addExpressionStatement(JotStatementExpression)
public JotStatement getChildStatement() throws JotInvalidElementException
JotInvalidElementException
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.