public class ElementWalker extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IWalkerFactory |
theFactory |
| Constructor and Description |
|---|
ElementWalker(IWalkerFactory _theFactory) |
| Modifier and Type | Method and Description |
|---|---|
IWalkerFactory |
getFactory()
Getter for theFactory attribute.
|
String |
toString() |
int |
walkTree(KElement e,
KElement trackElem)
walk the tree starting at e.
|
int |
walkTreeKidsFirst(KElement e)
walk the tree starting at e.
|
protected IWalkerFactory theFactory
public ElementWalker(IWalkerFactory _theFactory)
_theFactory - used to find the individual instances for the childrenpublic int walkTree(KElement e, KElement trackElem)
e - the root element to walk, must not be nulltrackElem - a parallel element to e that may additionally be modified during the walk, may be nullpublic int walkTreeKidsFirst(KElement e)
e - the root element to walkpublic String toString()
toString in class ObjectObject.toString()public IWalkerFactory getFactory()
Copyright © 2015. All rights reserved.