deletet because wrongly uploaded
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / PHPOutlineInfo.java
1 package net.sourceforge.phpdt.internal.compiler.parser;
2
3 import java.util.TreeSet;
4
5 /**
6  * 
7  * @author khartlage
8  */
9 public class PHPOutlineInfo {
10   TreeSet fVariables;
11   OutlineableWithChildren fDeclarations;
12
13   public PHPOutlineInfo(Object parent) {
14     fVariables = new TreeSet();
15     fDeclarations = new PHPClassDeclaration(parent, "_root", 1);
16   }
17
18   public PHPOutlineInfo(Object parent, OutlineableWithChildren phpDocument) {
19     fVariables = new TreeSet();
20     fDeclarations = phpDocument;
21   }
22
23   public TreeSet getVariables() {
24     return fVariables;
25   }
26
27   public OutlineableWithChildren getDeclarations() {
28     return fDeclarations;
29   }
30
31   public boolean add(OutlineableWithChildren o) {
32     return fDeclarations.add(o);
33   }
34   
35   public boolean addVariable(String variable) {
36     return fVariables.add(variable);
37   }
38 }