Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayAccess.java')
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayAccess.java54
1 files changed, 27 insertions, 27 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayAccess.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayAccess.java
index 316bdd326f..07a3b0d52b 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayAccess.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayAccess.java
@@ -21,33 +21,33 @@ import java.util.List;
* ArrayAccess:
* Expression <b>[</b> Expression <b>]</b>
* </pre>
- *
+ *
* @since 2.0
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class ArrayAccess extends Expression {
-
+
/**
* The "array" structural property of this node type.
* @since 3.0
*/
- public static final ChildPropertyDescriptor ARRAY_PROPERTY =
+ public static final ChildPropertyDescriptor ARRAY_PROPERTY =
new ChildPropertyDescriptor(ArrayAccess.class, "array", Expression.class, MANDATORY, CYCLE_RISK); //$NON-NLS-1$
/**
* The "index" structural property of this node type.
* @since 3.0
*/
- public static final ChildPropertyDescriptor INDEX_PROPERTY =
+ public static final ChildPropertyDescriptor INDEX_PROPERTY =
new ChildPropertyDescriptor(ArrayAccess.class, "index", Expression.class, MANDATORY, CYCLE_RISK); //$NON-NLS-1$
/**
- * A list of property descriptors (element type:
+ * A list of property descriptors (element type:
* {@link StructuralPropertyDescriptor}),
* or null if uninitialized.
*/
private static final List PROPERTY_DESCRIPTORS;
-
+
static {
List properyList = new ArrayList(3);
createPropertyList(ArrayAccess.class, properyList);
@@ -59,18 +59,18 @@ public class ArrayAccess extends Expression {
/**
* Returns a list of structural property descriptors for this node type.
* Clients must not modify the result.
- *
+ *
* @param apiLevel the API level; one of the
* <code>AST.JLS*</code> constants
- * @return a list of property descriptors (element type:
+ * @return a list of property descriptors (element type:
* {@link StructuralPropertyDescriptor})
* @since 3.0
*/
public static List propertyDescriptors(int apiLevel) {
return PROPERTY_DESCRIPTORS;
}
-
+
/**
* The array expression; lazily initialized; defaults to an unspecified,
* but legal, expression.
@@ -84,13 +84,13 @@ public class ArrayAccess extends Expression {
private Expression indexExpression = null;
/**
- * Creates a new unparented array access expression node owned by the given
- * AST. By default, the array and index expresssions are unspecified,
+ * Creates a new unparented array access expression node owned by the given
+ * AST. By default, the array and index expresssions are unspecified,
* but legal.
* <p>
* N.B. This constructor is package-private.
* </p>
- *
+ *
* @param ast the AST that is to own this node
*/
ArrayAccess(AST ast) {
@@ -103,7 +103,7 @@ public class ArrayAccess extends Expression {
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
-
+
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
@@ -127,7 +127,7 @@ public class ArrayAccess extends Expression {
// allow default implementation to flag the error
return super.internalGetSetChildProperty(property, get, child);
}
-
+
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
@@ -140,7 +140,7 @@ public class ArrayAccess extends Expression {
*/
ASTNode clone0(AST target) {
ArrayAccess result = new ArrayAccess(target);
- result.setSourceRange(this.getStartPosition(), this.getLength());
+ result.setSourceRange(getStartPosition(), getLength());
result.setArray((Expression) getArray().clone(target));
result.setIndex((Expression) getIndex().clone(target));
return result;
@@ -166,12 +166,12 @@ public class ArrayAccess extends Expression {
}
visitor.endVisit(this);
}
-
+
/**
* Returns the array expression of this array access expression.
- *
+ *
* @return the array expression node
- */
+ */
public Expression getArray() {
if (this.arrayExpression == null) {
// lazy init must be thread-safe for readers
@@ -185,10 +185,10 @@ public class ArrayAccess extends Expression {
}
return this.arrayExpression;
}
-
+
/**
* Sets the array expression of this array access expression.
- *
+ *
* @param expression the array expression node
* @exception IllegalArgumentException if:
* <ul>
@@ -196,7 +196,7 @@ public class ArrayAccess extends Expression {
* <li>the node already has a parent</li>
* <li>a cycle in would be created</li>
* </ul>
- */
+ */
public void setArray(Expression expression) {
if (expression == null) {
throw new IllegalArgumentException();
@@ -208,12 +208,12 @@ public class ArrayAccess extends Expression {
this.arrayExpression = expression;
postReplaceChild(oldChild, expression, ARRAY_PROPERTY);
}
-
+
/**
* Returns the index expression of this array access expression.
- *
+ *
* @return the index expression node
- */
+ */
public Expression getIndex() {
if (this.indexExpression == null) {
// lazy init must be thread-safe for readers
@@ -227,10 +227,10 @@ public class ArrayAccess extends Expression {
}
return this.indexExpression;
}
-
+
/**
* Sets the index expression of this array access expression.
- *
+ *
* @param expression the index expression node
* @exception IllegalArgumentException if:
* <ul>
@@ -238,7 +238,7 @@ public class ArrayAccess extends Expression {
* <li>the node already has a parent</li>
* <li>a cycle in would be created</li>
* </ul>
- */
+ */
public void setIndex(Expression expression) {
if (expression == null) {
throw new IllegalArgumentException();

Back to the top