diff options
Diffstat (limited to 'org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java')
-rw-r--r-- | org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java index 5e89160ab0..d2313fe341 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java @@ -24,26 +24,26 @@ import java.util.List; * ExpressionStatement: * StatementExpression <b>;</b> * </pre> - * + * * @since 2.0 * @noinstantiate This class is not intended to be instantiated by clients. */ public class ExpressionStatement extends Statement { - + /** * The "expression" structural property of this node type. * @since 3.0 */ - public static final ChildPropertyDescriptor EXPRESSION_PROPERTY = + public static final ChildPropertyDescriptor EXPRESSION_PROPERTY = new ChildPropertyDescriptor(ExpressionStatement.class, "expression", 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(2); createPropertyList(ExpressionStatement.class, properyList); @@ -54,18 +54,18 @@ public class ExpressionStatement extends Statement { /** * 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 expression; lazily initialized; defaults to a unspecified, but legal, * expression. @@ -73,13 +73,13 @@ public class ExpressionStatement extends Statement { private Expression expression = null; /** - * Creates a new unparented expression statement node owned by the given + * Creates a new unparented expression statement node owned by the given * AST. By default, the expression statement is unspecified, but legal, * method invocation expression. * <p> * N.B. This constructor is package-private. * </p> - * + * * @param ast the AST that is to own this node */ ExpressionStatement(AST ast) { @@ -92,7 +92,7 @@ public class ExpressionStatement extends Statement { final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(apiLevel); } - + /* (omit javadoc for this method) * Method declared on ASTNode. */ @@ -121,12 +121,12 @@ public class ExpressionStatement extends Statement { */ ASTNode clone0(AST target) { ExpressionStatement result = new ExpressionStatement(target); - result.setSourceRange(this.getStartPosition(), this.getLength()); + result.setSourceRange(getStartPosition(), getLength()); result.copyLeadingComment(this); result.setExpression((Expression) getExpression().clone(target)); return result; } - + /* (omit javadoc for this method) * Method declared on ASTNode. */ @@ -145,12 +145,12 @@ public class ExpressionStatement extends Statement { } visitor.endVisit(this); } - + /** * Returns the expression of this expression statement. - * + * * @return the expression node - */ + */ public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers @@ -164,10 +164,10 @@ public class ExpressionStatement extends Statement { } return this.expression; } - + /** * Sets the expression of this expression statement. - * + * * @param expression the new expression node * @exception IllegalArgumentException if: * <ul> @@ -175,7 +175,7 @@ public class ExpressionStatement extends Statement { * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> - */ + */ public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); @@ -185,14 +185,14 @@ public class ExpressionStatement extends Statement { this.expression = expression; postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY); } - + /* (omit javadoc for this method) * Method declared on ASTNode. */ int memSize() { return super.memSize() + 1 * 4; } - + /* (omit javadoc for this method) * Method declared on ASTNode. */ |