Extension SDK 10.1.2


oracle.jdeveloper.jot
Interface JotUnaryExpression

All Superinterfaces:
JotCodeElement, JotElement, JotExpression
All Known Subinterfaces:
JotPostIncrementOrDecrement, JotPreIncrementOrDecrement, JotTypecast

public interface JotUnaryExpression
extends JotExpression

The JotUnaryExpression interface represents a unary expression. A unary expression consists of an operator and an operand expression; and takes the form:

   +5
   !isEnabled()
   ~value
 
Since:
5.0
See Also:
"Section 15.15 of the Java Language Specification Second Edition"

Field Summary

Fields inherited from interface oracle.jdeveloper.jot.JotExpression
ANONYMOUS_CLASS_ALLOCATION_EXPRESSION, ARRAY_ALLOCATION_EXPRESSION, ARRAY_DEREFERENCE_EXPRESSION, ARRAY_INITIALIZER_EXPRESSION, ASSIGNMENT_EXPRESSION, CLASS_ALLOCATION_EXPRESSION, INFIX_EXPRESSION, METHOD_CALL_EXPRESSION, NESTED_EXPRESSION, POST_INC_OR_DEC_EXPRESSION, PRE_INC_OR_DEC_EXPRESSION, PRIMARY_EXPRESSION, QUESTION_EXPRESSION, TYPECAST_EXPRESSION, UNARY_EXPRESSION, UNCATEGORIZED_EXPRESSION

Method Summary
JotExpression getOperand()
Retrieves the operand expression.
java.lang.String getOperator()
Retrieves the operator associated with this unary expression.
void setOperand(java.lang.String exp)
Sets the operand expression.
void setOperator(java.lang.String oper)
Sets the operator associated with this unary expression.

Methods inherited from interface oracle.jdeveloper.jot.JotExpression
getAsAnonymousClass, getAsArrayAllocation, getAsArrayDereference, getAsArrayInitializer, getAsAssignment, getAsClassAllocation, getAsInfixExpression, getAsMethodCall, getAsNestedExpression, getAsPostIncrementOrDecrement, getAsPreIncrementOrDecrement, getAsPrimaryExpression, getAsQuestionExpression, getAsTypecast, getAsUnaryExpression, getExpressionString, getExpressionType, getMinimumReferenceName, isParenthesized, renameObjectReference, resolveTypeReference, setParenthesized

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

getOperator

public java.lang.String getOperator()
                             throws JotInvalidElementException
Retrieves the operator associated with this unary expression.
Throws:
JotInvalidElementException

setOperator

public void setOperator(java.lang.String oper)
                 throws JotInvalidElementException
Sets the operator associated with this unary expression.
Throws:
JotInvalidElementException

getOperand

public JotExpression getOperand()
                         throws JotInvalidElementException
Retrieves the operand expression.
Throws:
JotInvalidElementException

setOperand

public void setOperand(java.lang.String exp)
                throws JotInvalidElementException
Sets the operand expression. The existing operand is removed.
Parameters:
exp - the new expression string.
Throws:
JotInvalidElementException

Extension SDK


Copyright © 1997, 2004, Oracle. All rights reserved.