1 package net.sourceforge.phpdt.internal.compiler.parser;
3 import net.sourceforge.phpdt.internal.compiler.ast.PHPDocument;
5 import java.util.TreeSet;
11 public class PHPOutlineInfo {
13 OutlineableWithChildren fDeclarations;
15 public PHPOutlineInfo(Object parent) {
16 fVariables = new TreeSet();
17 fDeclarations = new PHPClassDeclaration(parent, "_root", 1);
20 public PHPOutlineInfo(Object parent, OutlineableWithChildren phpDocument) {
21 fVariables = new TreeSet();
22 fDeclarations = phpDocument;
25 public TreeSet getVariables() {
29 public OutlineableWithChildren getDeclarations() {
33 public boolean add(OutlineableWithChildren o) {
34 return fDeclarations.add(o);
37 public boolean addVariable(String variable) {
38 return fVariables.add(variable);