|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.elementwalker.BaseWalker
public class BaseWalker
| Field Summary | |
|---|---|
protected int |
depth
|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
BaseWalker(BaseWalkerFactory factory)
|
|
| Method Summary | |
|---|---|
int |
compareTo(BaseWalker arg0)
note the reverse order - high depth means up in list so that abstract classes get checked later (non-Javadoc) |
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.... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int depth
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public BaseWalker(BaseWalkerFactory factory)
factory - | Method Detail |
|---|
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 walk
IWalker.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 check
public int getDepth()
public int compareTo(BaseWalker arg0)
compareTo in interface Comparable<BaseWalker>arg0 - the other Basewalker
Comparable.compareTo(java.lang.Object)public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||