oracle.jdeveloper.jot
Interface JotArrayDereference
- All Superinterfaces:
- JotCodeElement, 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"
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 |
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 |
getObjectExpression
public JotExpression getObjectExpression()
throws JotInvalidElementException
- Retrieves the object expression portion of the array access expression.
-
- Throws:
JotInvalidElementException
setObjectExpression
public JotExpression setObjectExpression(java.lang.String exp)
throws JotInvalidElementException
- 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
.
- Throws:
JotInvalidElementException
getIndexExpression
public JotExpression getIndexExpression()
throws JotInvalidElementException
- Retrieves the index expression portion of this array access expression.
-
- Throws:
JotInvalidElementException
setIndexExpression
public JotExpression setIndexExpression(java.lang.String exp)
throws JotInvalidElementException
- Sets the index expression portion of this array access expression.
-
- Parameters:
exp
- the new index expression.
- Returns:
- the new expression as a
JotExpression
.
- Throws:
JotInvalidElementException
Copyright © 1997, 2004, Oracle. All rights reserved.