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.
*/
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 ?)