Rewritten Parser/Scanner to package net.sourceforge.phpdt.internal.compiler.parser
[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   PHPSegmentWithChildren fDeclarations;
12
13   public PHPOutlineInfo(Object parent) {
14     fVariables = new TreeSet();
15     fDeclarations = new PHPClassDeclaration(parent, "_root", 1);
16   }
17
18   public TreeSet getVariables() {
19     return fVariables;
20   }
21
22   public PHPSegmentWithChildren getDeclarations() {
23     return fDeclarations;
24   }
25
26   public boolean add(PHPFunctionDeclaration o) {
27     return fDeclarations.add(o);
28   }
29   
30   public boolean addVariable(String variable) {
31     return fVariables.add(variable);
32   }
33 }