|
Extension SDK | |||||||||
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.JotElement |
getElementName, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Method Detail |
public JotBlockStatement addBlock()
JotBlockStatement
representing the new block.public JotBreak addBreak()
JotBreak
representing the break statement.public JotContinue addContinue()
JotContinue
representing the continue statement.public JotReturn addReturn(java.lang.String exp)
exp
- the return expression; null
create return without
a value;
JotReturn
representing the return statement.public JotThrow addThrow(java.lang.String exp)
exp
- the value being thrown.
JotThrow
representing the throw statement.public JotDo addDo(java.lang.String condition)
condition
- the conditional expression.
JotDo
representing the do statement.public JotWhile addWhile(java.lang.String condition)
condition
- the conditional expression.
JotWhile
representing the while statement.public JotIf addIf(java.lang.String exp)
exp
- the conditional expression.
JotIf
representing the if statement.public JotFor addFor()
JotFor
representing the for statement.public JotSwitch addSwitch(java.lang.String exp)
exp
- the expression being switched on.
JotSwitch
representing the switch statement.public JotSynchronized addSynchronized(java.lang.String exp)
exp
- the expression being synchronized on.
JotSynchronized
representing the synchronized statement.public JotExpressionStatement addExpressionStatement(java.lang.String exp)
exp
- the expression being wrapped.
JotExpressionStatement
representing the expression statement.public JotExpressionStatement addExpressionStatement(JotStatementExpression exp)
exp
- the statement expression to wrap.
JotExpressionStatement
representing the expression statement.public JotTry addTry()
JotTry
representing the try statement.public JotStatement addStatement(java.lang.String text) throws JotException
text
- the text of the new statement.
JotException
- if the new text cannot be parsed into a single
statement.public JotMethodCall createMethodCall(java.lang.String object, java.lang.String method)
object
- the object on which the method call is being made.method
- the name of the method being invoked.
JotMethodCall
representing the method call.addExpressionStatement(JotStatementExpression)
,
createNestedMethodCall(JotMethodCall, JotMethodCall)
public JotNestedExpression createNestedMethodCall(JotMethodCall firstCall, JotMethodCall secondCall)
foo().bar()
.
firstCall
- the first method call.secondCall
- the second method call.
JotNestedExpression
representing the nested method
call.createMethodCall(String, String)
public JotAssignment createAssignment(java.lang.String variable, java.lang.String value)
variable
- the variable (or left side) of the assignment.value
- the expression being assigned to the variable.
JotAssignment
representing the assignment.addExpressionStatement(JotStatementExpression)
public JotStatement getChildStatement()
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.