T
- public class TreeNode<T> extends Object
Modifier and Type | Field and Description |
---|---|
HashMap<T,TreeNode<T>> |
children |
T |
data |
TreeNode<T> |
parent |
Modifier and Type | Method and Description |
---|---|
TreeNode<T> |
addChild(T child) |
TreeNode<T> |
get(T data) |
jline.console.completer.AggregateCompleter |
getCompleter(HashMap<TreeNode<String>,Command> commandMap,
Location currentLocation)
Creates an ArgumentCompleter tree from the TreeNode
|
int |
getLevel() |
List<String> |
getSourcePath() |
boolean |
isLeaf() |
boolean |
isRoot() |
String |
toString() |
public T data
public TreeNode(T data)
public jline.console.completer.AggregateCompleter getCompleter(HashMap<TreeNode<String>,Command> commandMap, Location currentLocation)
public int getLevel()
public boolean isLeaf()
public boolean isRoot()
Copyright © 2016. All rights reserved.