getFirstChildOfType(Class<T> childType) Traverses down the tree to find the first child instance of type childType
Parameters: childType - class which you want to find.
public T
getFirstParentOfType(Class<T> parentType) Traverses up the tree to find the first parent instance of type parentType
Parameters: parentType - class which you want to find.
getParentsOfType(Class<T> parentType) Traverses up the tree to find all of the parent instances of type parentType
Parameters: parentType - classes which you want to find.
final public boolean containsChildOfType(Class<T> type)(Code)
Finds if this node contains a child of the given type.
This is an utility method that uses
SimpleNode.findChildrenOfType(Class) Parameters: type - the node type to search true if there is at lease on child of the given type and false in any other case
public T getFirstChildOfType(Class<T> childType)(Code)
Traverses down the tree to find the first child instance of type childType
Parameters: childType - class which you want to find. Node of type childType. Returns null if none found.
getFirstParentOfType
public T getFirstParentOfType(Class<T> parentType)(Code)
Traverses up the tree to find the first parent instance of type parentType
Parameters: parentType - class which you want to find. Node of type parentType. Returns null if none found.
Traverses up the tree to find all of the parent instances of type parentType
Parameters: parentType - classes which you want to find. List of parentType instances found.