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 dae26ff..90218e1 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,22 +1,34 @@ package net.sourceforge.phpdt.internal.compiler.ast; -import net.sourceforge.phpdt.internal.compiler.parser.Outlineable; -import net.sourceforge.phpdt.internal.ui.PHPUiImages; -import org.eclipse.jface.resource.ImageDescriptor; - /** + * A Field declaration. + * This is a variable declaration for a php class + * In fact it's an array of VariableDeclaration, since a field could contains + * several vars : + * var $toto,$tata; * @author Matthieu Casanova */ public class FieldDeclaration extends Statement { + /** The variables. */ public VariableDeclaration[] vars; - public FieldDeclaration(VariableDeclaration[] vars,int sourceStart,int sourceEnd) { - super(sourceStart,sourceEnd); + /** + * Create a new field. + * @param vars the array of variables. + * @param sourceStart the starting offset + * @param sourceEnd the ending offset + */ + public FieldDeclaration(VariableDeclaration[] vars, int sourceStart, int sourceEnd) { + super(sourceStart, sourceEnd); this.vars = vars; } - + /** + * Return the object into String. + * @param tab how many tabs (not used here + * @return a String + */ public String toString(int tab) { final StringBuffer buff = new StringBuffer(tabString(tab)); buff.append("var ");