changed name of Scanner tokens to names similar in the JDT
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / phpparser / PHPOutlineInfo.java
1 package net.sourceforge.phpeclipse.phpeditor.phpparser;
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 }