Extension SDK

oracle.jdeveloper.jot
Interface JotInfixExpression

All Superinterfaces:
JotElement, JotExpression

public interface JotInfixExpression
extends JotExpression

The JotInfixExpression represents an infix expression. An infix expression consists of two expressions with an operator between them. Assignments are not infix expressions, rather they are JotAssignments. Infix expressions have the form:

   10 + 5
   foo != bar
   isEnable() || isEditable()
   foo << 3
 

Since:
5.0
See Also:
"Sections 15.17-15.24 of the Java Language Specification Second Edition"

Field Summary
static java.lang.String BINAND
          The bitwise-and operator '&'
static java.lang.String BINOR
          The bitwise-or operator '|'
static java.lang.String BINXOR
          The bitwise-exclusive-or operator '^'
static java.lang.String DIV
          The division operator '/'
static java.lang.String EQ
          The equals operator '=='
static java.lang.String GE
          The greater-than-or-equal operator '>='
static java.lang.String GT
          The greater-than operator '>'
static java.lang.String INSTANCEOF
          The instanceof operator
static java.lang.String LE
          The less-than-or-equal operator '>='
static java.lang.String LOGAND
          The conditional-and operator '&&'
static java.lang.String LOGOR
          The conditional-or operator '||'
static java.lang.String LSH
          The left-shift operator '<<'
static java.lang.String LT
          The less-than operator '<'
static java.lang.String MINUS
          The subtraction operator '-'
static java.lang.String MOD
          The remainder operator '%'
static java.lang.String MUL
          The multiplication operator '*'
static java.lang.String NE
          The not-equals operator '!='
static java.lang.String PLUS
          The addition operator '+'
static java.lang.String RSH
          The right-shift operator '>>'
static java.lang.String URSH
          The unsigned right-shift operator '>>>'
 
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 getLeftExpression()
          Retrieves the left hand side expression.
 java.lang.String getOperator()
          Retrieves the operator associated with this infix expression.
 JotExpression getRightExpression()
          Retrieves the right hand side expression.
 void setLeftExpression(java.lang.String exp)
          Sets the left hand side expression.
 void setOperator(java.lang.String oper)
          Sets the new operator for this infix expression.
 void setRightExpression(java.lang.String exp)
          Sets the right hand side 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
 

Field Detail

MUL

public static final java.lang.String MUL
The multiplication operator '*'

See Also:
Constant Field Values

DIV

public static final java.lang.String DIV
The division operator '/'

See Also:
Constant Field Values

MOD

public static final java.lang.String MOD
The remainder operator '%'

See Also:
Constant Field Values

PLUS

public static final java.lang.String PLUS
The addition operator '+'

See Also:
Constant Field Values

MINUS

public static final java.lang.String MINUS
The subtraction operator '-'

See Also:
Constant Field Values

LSH

public static final java.lang.String LSH
The left-shift operator '<<'

See Also:
Constant Field Values

RSH

public static final java.lang.String RSH
The right-shift operator '>>'

See Also:
Constant Field Values

URSH

public static final java.lang.String URSH
The unsigned right-shift operator '>>>'

See Also:
Constant Field Values

LT

public static final java.lang.String LT
The less-than operator '<'

See Also:
Constant Field Values

GT

public static final java.lang.String GT
The greater-than operator '>'

See Also:
Constant Field Values

LE

public static final java.lang.String LE
The less-than-or-equal operator '>='

See Also:
Constant Field Values

GE

public static final java.lang.String GE
The greater-than-or-equal operator '>='

See Also:
Constant Field Values

INSTANCEOF

public static final java.lang.String INSTANCEOF
The instanceof operator

See Also:
Constant Field Values

EQ

public static final java.lang.String EQ
The equals operator '=='

See Also:
Constant Field Values

NE

public static final java.lang.String NE
The not-equals operator '!='

See Also:
Constant Field Values

LOGAND

public static final java.lang.String LOGAND
The conditional-and operator '&&'

See Also:
Constant Field Values

LOGOR

public static final java.lang.String LOGOR
The conditional-or operator '||'

See Also:
Constant Field Values

BINAND

public static final java.lang.String BINAND
The bitwise-and operator '&'

See Also:
Constant Field Values

BINOR

public static final java.lang.String BINOR
The bitwise-or operator '|'

See Also:
Constant Field Values

BINXOR

public static final java.lang.String BINXOR
The bitwise-exclusive-or operator '^'

See Also:
Constant Field Values
Method Detail

getOperator

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


setOperator

public void setOperator(java.lang.String oper)
Sets the new operator for this infix expression.


getLeftExpression

public JotExpression getLeftExpression()
Retrieves the left hand side expression.


setLeftExpression

public void setLeftExpression(java.lang.String exp)
Sets the left hand side expression. Any existing expression is removed.

Parameters:
exp - the new expression string.

getRightExpression

public JotExpression getRightExpression()
Retrieves the right hand side expression.


setRightExpression

public void setRightExpression(java.lang.String exp)
Sets the right hand side expression. Any existing expression is removed.

Parameters:
exp - the new expression string.

Extension SDK

 

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