Extension SDK

oracle.jdeveloper.jot
Interface JotUnaryExpression

All Superinterfaces:
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.JotElement
getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent
 

Method Detail

getOperator

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


setOperator

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


getOperand

public JotExpression getOperand()
Retrieves the operand expression.


setOperand

public void setOperand(java.lang.String exp)
Sets the operand expression. The existing operand is removed.

Parameters:
exp - the new expression string.

Extension SDK

 

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