Extension SDK

oracle.jdeveloper.jot
Interface JotArrayDereference

All Superinterfaces:
JotElement, JotExpression

public interface JotArrayDereference
extends JotExpression

A JotArrayDereference represents an array access expression. An array access expression has the form:

   String[10]
   int[2][3]
   someMethod()[2]
 
An array access expression is a primary expression consisting of two sub-expressions. The first expression, the Object Expression, represents the everything before the last left bracket, and the second expression, the Index Expression, represents the part inside of the brackets.

Since:
5.0
See Also:
"Section 15.13 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 getIndexExpression()
          Retrieves the index expression portion of this array access expression.
 JotExpression getObjectExpression()
          Retrieves the object expression portion of the array access expression.
 JotExpression setIndexExpression(java.lang.String exp)
          Sets the index expression portion of this array access expression.
 JotExpression setObjectExpression(java.lang.String exp)
          Sets the new object expression portion of the array access 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

getObjectExpression

public JotExpression getObjectExpression()
Retrieves the object expression portion of the array access expression.


setObjectExpression

public JotExpression setObjectExpression(java.lang.String exp)
Sets the new object expression portion of the array access expression. The existing object expression is removed.

Parameters:
exp - the new expression string.
Returns:
the new expression as a JotExpression.

getIndexExpression

public JotExpression getIndexExpression()
Retrieves the index expression portion of this array access expression.


setIndexExpression

public JotExpression setIndexExpression(java.lang.String exp)
Sets the index expression portion of this array access expression.

Parameters:
exp - the new index expression.
Returns:
the new expression as a JotExpression.

Extension SDK

 

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