X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/FieldDeclaration.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/FieldDeclaration.java index 61d4c8b..c36e9dd 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/FieldDeclaration.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/FieldDeclaration.java @@ -1,13 +1,13 @@ package net.sourceforge.phpdt.internal.compiler.ast; +import java.util.List; + import net.sourceforge.phpdt.internal.compiler.parser.Outlineable; import net.sourceforge.phpdt.internal.ui.PHPUiImages; + import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.text.Position; -import java.util.List; -import java.util.ArrayList; - /** * A Field declaration. * This is a variable declaration for a php class @@ -16,13 +16,14 @@ import java.util.ArrayList; * var $toto,$tata; * @author Matthieu Casanova */ -public class FieldDeclaration extends Statement implements Outlineable { +public final class FieldDeclaration extends Statement implements Outlineable { /** The variables. */ - public VariableDeclaration[] vars; + public final VariableDeclaration[] vars; + + private final Object parent; + private final Position position; - private Object parent; - private Position position; /** * Create a new field. * @param vars the array of variables. @@ -61,7 +62,7 @@ public class FieldDeclaration extends Statement implements Outlineable { * @return the image that represents a php variable */ public ImageDescriptor getImage() { - return PHPUiImages.DESC_VAR; + return PHPUiImages.DESC_VAR; } public Object getParent() { @@ -72,27 +73,24 @@ public class FieldDeclaration extends Statement implements Outlineable { return position; } - /** + /** * Get the variables from outside (parameters, globals ...) - * @return the variables from outside + * + * @param list the list where we will put variables */ - public List getOutsideVariable() { - return new ArrayList(1); - } + public void getOutsideVariable(final List list) {} /** * get the modified variables. - * @return the variables from we change value + * + * @param list the list where we will put variables */ - public List getModifiedVariable() { - return new ArrayList(1); - } + public void getModifiedVariable(final List list) {} /** * Get the variables used. - * @return the variables used + * + * @param list the list where we will put variables */ - public List getUsedVariable() { - return new ArrayList(1); - } + public void getUsedVariable(final List list) {} }