Modifier and Type | Field and Description |
---|---|
(package private) java.util.ArrayList<TreeNode> |
children |
(package private) boolean |
exclude |
(package private) java.lang.String |
label |
(package private) TreeNode |
parent |
(package private) java.lang.String |
path |
Constructor and Description |
---|
StringTree(java.lang.String pth,
java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(TreeNode tn) |
void |
addFromTokens(java.util.StringTokenizer st) |
void |
compress() |
java.lang.Object |
getChild(int index) |
int |
getChildCount() |
java.util.ArrayList<TreeNode> |
getChildren() |
private StringTree |
getChildTree(java.lang.String s) |
private TreeNode |
getCompressedForm() |
java.util.ArrayList<TreeNode> |
getGrandchildrenAsChildren() |
int |
getIndexOfChild(java.lang.Object child) |
java.lang.String |
getLabel() |
java.lang.Object[] |
getObjectPath(java.lang.String s,
boolean b) |
java.lang.Object |
getParent() |
java.lang.String |
getPath() |
TreeNode |
getRoot() |
int |
getRootPolicy() |
boolean |
isLeaf() |
int |
nChildren() |
void |
partialFlatten() |
private void |
prefixLabel(java.lang.String pfx) |
void |
print() |
private void |
print(java.lang.String indent) |
void |
setExcluded() |
void |
setParent(TreeNode obj) |
void |
setTreeChangeReporter(TreeChangeReporter tcr) |
java.lang.String |
toString() |
java.lang.String path
java.lang.String label
java.util.ArrayList<TreeNode> children
TreeNode parent
boolean exclude
public void setExcluded()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLabel()
public java.lang.String getPath()
public void addChild(TreeNode tn)
public java.util.ArrayList<TreeNode> getChildren()
public int nChildren()
private StringTree getChildTree(java.lang.String s)
public void addFromTokens(java.util.StringTokenizer st)
public void compress()
public void partialFlatten()
private TreeNode getCompressedForm()
public java.util.ArrayList<TreeNode> getGrandchildrenAsChildren()
private void prefixLabel(java.lang.String pfx)
public void print()
private void print(java.lang.String indent)
public int getRootPolicy()
getRootPolicy
in interface Tree
public void setTreeChangeReporter(TreeChangeReporter tcr)
setTreeChangeReporter
in interface Tree
public java.lang.Object[] getObjectPath(java.lang.String s, boolean b)
getObjectPath
in interface Tree
public void setParent(TreeNode obj)
public int getChildCount()
getChildCount
in interface TreeNode
public int getIndexOfChild(java.lang.Object child)
getIndexOfChild
in interface TreeNode
Copyright © 2013. All Rights Reserved.