public class SimpleTree extends Object
Modifier and Type | Field and Description |
---|---|
String |
cat |
ArrayList<SimpleTree> |
children |
SimpleTree |
parent |
Constructor and Description |
---|
SimpleTree(String c) |
SimpleTree(String c,
SimpleTree p) |
SimpleTree(String c,
SimpleTree p,
boolean g) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(SimpleTree t) |
static String |
escapeCat(String c) |
static SimpleTree |
fromString(String string) |
void |
insertChild(int index,
SimpleTree t) |
boolean |
isLeaf() |
static void |
main(String[] args) |
SimpleTree |
removeChild(int index) |
void |
setGeneralizeLeaf(boolean b) |
String |
toString() |
public String cat
public ArrayList<SimpleTree> children
public SimpleTree parent
public SimpleTree(String c)
public SimpleTree(String c, SimpleTree p)
public SimpleTree(String c, SimpleTree p, boolean g)
public void addChild(SimpleTree t)
public void insertChild(int index, SimpleTree t)
public SimpleTree removeChild(int index)
public static SimpleTree fromString(String string)
public static void main(String[] args)
public boolean isLeaf()
public void setGeneralizeLeaf(boolean b)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.