package net.sourceforge.phpdt.internal.compiler.parser; import java.util.TreeSet; /** * * @author khartlage */ public class PHPOutlineInfo { TreeSet fVariables; OutlineableWithChildren fDeclarations; public PHPOutlineInfo(Object parent) { fVariables = new TreeSet(); fDeclarations = new PHPClassDeclaration(parent, "_root", 1); } public PHPOutlineInfo(Object parent, OutlineableWithChildren phpDocument) { fVariables = new TreeSet(); fDeclarations = phpDocument; } public TreeSet getVariables() { return fVariables; } public OutlineableWithChildren getDeclarations() { return fDeclarations; } public boolean add(OutlineableWithChildren o) { return fDeclarations.add(o); } public boolean addVariable(String variable) { return fVariables.add(variable); } }