ContextHelp now in new module net.sourceforge.phpeclipse.phphelp
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / phpparser / PHPOutlineInfo.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPOutlineInfo.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPOutlineInfo.java
new file mode 100644 (file)
index 0000000..b46f68a
--- /dev/null
@@ -0,0 +1,34 @@
+package net.sourceforge.phpeclipse.phpeditor.phpparser;
+
+import java.util.TreeMap;
+import java.util.TreeSet;
+
+/**
+ * 
+ * @author khartlage
+ */
+public class PHPOutlineInfo {
+  TreeSet fVariables;
+  PHPClassDeclaration fDeclarations;
+
+  public PHPOutlineInfo(Object parent) {
+    fVariables = new TreeSet();
+    fDeclarations = new PHPClassDeclaration(parent, "_root", 1);
+  }
+
+  public TreeSet getVariables() {
+    return fVariables;
+  }
+
+  public PHPClassDeclaration getDeclarations() {
+    return fDeclarations;
+  }
+
+  public boolean add(PHPFunctionDeclaration o) {
+    return fDeclarations.add(o);
+  }
+  
+  public boolean addVariable(String variable) {
+    return fVariables.add(variable);
+  }
+}