public class BaseWalker extends Object implements IWalker, Comparable<BaseWalker>
| Modifier and Type | Field and Description |
|---|---|
protected int |
depth |
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
BaseWalker() |
BaseWalker(BaseWalkerFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BaseWalker arg0)
note the reverse order - high depth means up in list so that abstract classes get checked later
|
void |
finalizeWalk(KElement e,
KElement trackElem)
hook for guaranteed postwalk finalization
|
int |
getDepth() |
boolean |
matches(KElement e)
this is the check whether or not to use this walker for a given element should be overwritten
|
void |
prepareWalk(KElement e,
KElement trackElem)
hook for guaranteed prewalk initialization
|
String |
toString() |
KElement |
walk(KElement e,
KElement trackElem)
the mother routine for walking....
|
public BaseWalker()
factory - public BaseWalker(BaseWalkerFactory factory)
factory - public KElement walk(KElement e, KElement trackElem)
walk in interface IWalkere - the element to walktrackElem - a parallel element to e that may additionally be modified during the walkIWalker.walk(KElement, KElement)public void prepareWalk(KElement e, KElement trackElem)
prepareWalk in interface IWalkere - trackElem - public void finalizeWalk(KElement e, KElement trackElem)
finalizeWalk in interface IWalkere - trackElem - public boolean matches(KElement e)
e - the element to checkpublic int getDepth()
public int compareTo(BaseWalker arg0)
compareTo in interface Comparable<BaseWalker>arg0 - the other BasewalkerComparable.compareTo(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.