|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JotLocalVariableDeclaration
represents a local variable
declaration.
JotVariableDeclaration
,
JotLocalVariable
Field Summary |
Fields inherited from interface oracle.jdeveloper.jot.JotBlockElement |
LOCAL_CLASS_TYPE, STATEMENT_TYPE, VARIABLE_DECLARATION_TYPE |
Method Summary | |
JotLocalVariable |
addLocalVariable(JotLocalVariable marker,
boolean before,
java.lang.String varName)
Adds a new local variable to this declaration. |
JotLocalVariable |
addLocalVariable(java.lang.String varName)
Adds a new local variable to the end of this declaration. |
JotLocalVariable[] |
getLocalVariables()
Retrieves the local variables contained in this declaration. |
void |
removeLocalVariable(JotLocalVariable var)
Removes a local variable from this declaration. |
Methods inherited from interface oracle.jdeveloper.jot.JotVariableDeclaration |
addVariable, addVariable, getAsFieldDeclaration, getAsLocalVariableDeclaration, getType, getVariables, removeVariable, setType |
Methods inherited from interface oracle.jdeveloper.jot.JotHasModifiers |
getModifiers, getModifierText, setModifiers, setModifierText |
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, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Methods inherited from interface oracle.jdeveloper.jot.JotBlockElement |
getAsLocalClass, getAsStatement, getAsVariableDeclaration, getElementType |
Method Detail |
public JotLocalVariable[] getLocalVariables() throws JotInvalidElementException
JotLocalVariable
s representing this
declarations's local variables. This declaration will contains at least
one local variable as long as it is valid.
JotInvalidElementException
public JotLocalVariable addLocalVariable(JotLocalVariable marker, boolean before, java.lang.String varName) throws JotInvalidElementException, JotException
marker
- an existing local variable in this declaration to position
relative to, or null
to position at the beginning or end.before
- whether to position the new local variable before or after
the existing local variable; or, if the marker variable is null
,
whether to position the new local variable at the beginning or the end of
this declaration.varName
- the name of the new local variable.
JotLocalVariable
representing the new local variable.
JotException
- if this declaration cannot be modified.
JotInvalidElementException
public JotLocalVariable addLocalVariable(java.lang.String varName) throws JotInvalidElementException, JotException
varName
- the name of the new variable.
JotLocalVariable
representing the new local variable.
JotException
- if this declaration cannot be modified.
JotInvalidElementException
public void removeLocalVariable(JotLocalVariable var) throws JotInvalidElementException, JotException
var
- the local variable to remove. If the variable is not part of
this declaration, the request to remove it is ignored.
JotException
- if the variable cannot be removed from this declaration.
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.