|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.eclipse.editors.completion.Node
public class Node
| Constructor Summary | |
|---|---|
Node(String name)
|
|
| Method Summary | |
|---|---|
Node |
addChild(Node n)
The method will check to see if a Node with the same string token already exists. |
Node |
addToken(String token)
The method will create a new Node instance and try to add it as a child node. |
void |
clearChildren()
|
Node |
getChild(String token)
The method will get the child matching the string token |
Collection<Node> |
getChildren()
|
int |
getDepth()
|
Node |
getParent()
|
String |
getToken()
|
boolean |
isMatch(Node n)
|
boolean |
isMatch(String input)
if the string matches this node's token, the method will return true. |
void |
removeChild(Node n)
|
void |
setDepth(int depth)
|
void |
setParent(Node parent)
|
void |
setToken(String token)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Node(String name)
| Method Detail |
|---|
public Node addToken(String token)
token -
public boolean isMatch(String input)
input -
public boolean isMatch(Node n)
public Node addChild(Node n)
n -
public void removeChild(Node n)
public Collection<Node> getChildren()
public Node getChild(String token)
token -
public Node getParent()
public void setParent(Node parent)
public String getToken()
public void setToken(String token)
public int getDepth()
public void setDepth(int depth)
public void clearChildren()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||