|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A JotAssignment
represents an assignment expression.
An assignment consists of three parts: a left hand expression, an operator,
and a right hand expression. The left hand expression must be a variable.
The operator is one of =
, +=
, -=
,
*=
, /=
, %=
,
<<=
, >>=
, >>>=
,
&=
, |=
, or ^=
.
The right hand expression is any expression.
Field Summary |
Method Summary | |
JotExpression |
getAssignmentExpression()
Retrieves the right hand expression. |
java.lang.String |
getAssignmentOperator()
Retrieves the assignment operator. |
JotExpression |
getVariableExpression()
Retrieves the left hand variable expression. |
java.lang.String |
getVariableName()
Retrieves the left hand variable expression as a string. |
boolean |
isCompoundOperator()
Whether this assignment is using a compound assignment operator. |
void |
setAssignmentExpression(java.lang.String exp)
Sets the right hand expression. |
void |
setAssignmentOperator(java.lang.String oper)
Sets the assignment operator. |
void |
setVariableName(java.lang.String newVar)
Sets the left hand variable expression. |
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 |
Method Detail |
public JotExpression getVariableExpression() throws JotInvalidElementException
JotInvalidElementException
public java.lang.String getVariableName() throws JotInvalidElementException
JotInvalidElementException
public void setVariableName(java.lang.String newVar) throws JotInvalidElementException
newVar
- the new variable expression.
JotInvalidElementException
public java.lang.String getAssignmentOperator() throws JotInvalidElementException
JotInvalidElementException
public void setAssignmentOperator(java.lang.String oper) throws JotInvalidElementException
oper
- the new operator.
JotInvalidElementException
public boolean isCompoundOperator() throws JotInvalidElementException
false
if the assignment operator is
=
, true
if the operator is any one of the eleven
other operators.
JotInvalidElementException
public JotExpression getAssignmentExpression() throws JotInvalidElementException
JotExpression
that makes up the
right hand side of the assignment.
JotInvalidElementException
public void setAssignmentExpression(java.lang.String exp) throws JotInvalidElementException
exp
- the new right hand expression as a String.
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.