| java.lang.Object org.drools.eclipse.editors.completion.Node
addChild | public Node addChild(Node n)(Code) | | The method will check to see if a Node with the same string token
already exists. If it doesn't, it will add the token as a child and
return the same node.
On the otherhand, if there is an existing Node for the same string
token, the method returns the existing Node instance.
Parameters: n - |
addToken | public Node addToken(String token)(Code) | | The method will create a new Node instance and try to add it as
a child node. If an Node with the same string token exists, the
method will return the existing node instead.
Parameters: token - |
clearChildren | public void clearChildren()(Code) | | |
getChild | public Node getChild(String token)(Code) | | The method will get the child matching the string token
Parameters: token - |
getDepth | public int getDepth()(Code) | | |
isMatch | public boolean isMatch(String input)(Code) | | if the string matches this node's token, the method will return
true. Otherwise it returns false.
Parameters: input - |
setDepth | public void setDepth(int depth)(Code) | | |
|
|