Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.maddyhome.idea.vim.key
Class ParentNode  view ParentNode download ParentNode.java

java.lang.Object
  extended bycom.maddyhome.idea.vim.key.ParentNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
BranchNode, RootNode

public abstract class ParentNode
extends java.lang.Object
implements Node

This abstract node is used as a base for any node that can contain child nodes


Field Summary
protected  java.util.HashMap children
           
 
Constructor Summary
ParentNode()
           
 
Method Summary
 void addChild(Node child, java.lang.Object key)
          This adds a child node keyed by the supplied key
 Node getChild(java.lang.Object key)
          Returns the child node associated with the supplied key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected java.util.HashMap children
Constructor Detail

ParentNode

public ParentNode()
Method Detail

addChild

public void addChild(Node child,
                     java.lang.Object key)
This adds a child node keyed by the supplied key


getChild

public Node getChild(java.lang.Object key)
Returns the child node associated with the supplied key. The key must be the same as used in addChild(com.maddyhome.idea.vim.key.Node, java.lang.Object) 55