X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/PHPDocument.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/PHPDocument.java index 92dccf0..0f81089 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/PHPDocument.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/PHPDocument.java @@ -1,21 +1,22 @@ package net.sourceforge.phpdt.internal.compiler.ast; -import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren; +import java.util.ArrayList; +import java.util.List; + import net.sourceforge.phpdt.internal.compiler.parser.Outlineable; +import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren; import net.sourceforge.phpdt.internal.ui.PHPUiImages; + import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.text.Position; -import java.util.ArrayList; -import java.util.List; - /** * It's a php document. * This class is an outlineable object * It will contains html and php * @author Matthieu Casanova */ -public class PHPDocument implements OutlineableWithChildren { +public final class PHPDocument implements OutlineableWithChildren { /** * The nodes. @@ -23,15 +24,15 @@ public class PHPDocument implements OutlineableWithChildren { */ public AstNode[] nodes; - public char[] name; + private final char[] name; /** The parent of the object. */ - public Object parent; + private final Object parent; /** The outlineable children (those will be in the node array too. */ - private ArrayList children = new ArrayList(); + private final ArrayList children = new ArrayList(); - private Position position; + private final Position position; /** * Create the PHPDocument. * @param parent the parent object (it should be null isn't it ?)