mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 09:20:45 +00:00
AS3: Decompiling namespaces
This commit is contained in:
@@ -22,14 +22,14 @@ public class Tree {
|
||||
|
||||
private final TreeElement ROOT = new TreeElement("", "", -1, null);
|
||||
|
||||
public void add(String name, String path, int classIndex) {
|
||||
public void add(String name, String path, Object item) {
|
||||
StringTokenizer st = new StringTokenizer(path, ".");
|
||||
TreeElement parent = ROOT;
|
||||
while (st.hasMoreTokens()) {
|
||||
String pathElement = st.nextToken();
|
||||
parent = parent.getBranch(pathElement);
|
||||
}
|
||||
parent.addLeaf(name, classIndex);
|
||||
parent.addLeaf(name, item);
|
||||
}
|
||||
|
||||
public TreeElement getRoot() {
|
||||
|
||||
Reference in New Issue
Block a user