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() |
VString |
getElementNames()
retur the list of elements that will always be procesed by this walker
|
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 IWalker
e
- 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 IWalker
e
- trackElem
- public void finalizeWalk(KElement e, KElement trackElem)
finalizeWalk
in interface IWalker
e
- trackElem
- public boolean matches(KElement e)
e
- the element to checkpublic int getDepth()
public VString getElementNames()
public int compareTo(BaseWalker arg0)
compareTo
in interface Comparable<BaseWalker>
arg0
- the other BasewalkerComparable.compareTo(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.