public class B_O_S_SE_SL_Traverser<T> extends B_O_Traverser<T>
Traverser.Admin<T>Attachable.Exceptions, Attachable.Method| Modifier and Type | Field and Description |
|---|---|
protected String |
loopName |
protected short |
loops |
protected Object |
sack |
protected TraversalSideEffects |
sideEffects |
bulk, futuretagstHALT| Modifier | Constructor and Description |
|---|---|
protected |
B_O_S_SE_SL_Traverser() |
|
B_O_S_SE_SL_Traverser(T t,
Step<T,?> step,
long initialBulk) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equals(B_O_S_SE_SL_Traverser other) |
boolean |
equals(Object object) |
TraversalSideEffects |
getSideEffects()
Get the sideEffects associated with the traversal of the traverser.
|
int |
hashCode() |
void |
incrLoops()
Increment the number of times the traverser has gone through a looping section of traversal.
|
void |
initialiseLoops(String stepLabel,
String loopName)
Initialise a loop by setting up the looping construct.
|
int |
loops()
Return the number of times the traverser has gone through a looping section of a traversal.
|
int |
loops(String loopName)
Return the number of times the traverser has gone through the named looping section of a traversal.
|
void |
merge(Traverser.Admin<?> other)
When two traversers are have equality with each other, then they can be merged.
|
void |
resetLoops()
Set the number of times the traverser has gone through a loop back to 0.
|
<S> S |
sack()
Get the sack local sack object of this traverser.
|
<S> void |
sack(S object)
Set the traversers sack object to the provided value ("sack the value").
|
void |
setSideEffects(TraversalSideEffects sideEffects)
Set the sideEffects of the
Traversal. |
Traverser.Admin<T> |
split()
Generate a sibling traverser of the current traverser with a full copy of all state within the sibling.
|
<R> Traverser.Admin<R> |
split(R r,
Step<T,R> step)
Generate a child traverser of the current traverser for current as step and new object location.
|
bulk, equals, getStepId, setBulk, setStepIdequals, getTagsaddLabels, attach, clone, detach, dropLabels, dropPath, get, keepLabels, path, set, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitisHaltedasAdmin, compareTo, path, path, sideEffects, sideEffectsprotected Object sack
protected short loops
protected String loopName
protected transient TraversalSideEffects sideEffects
public <S> S sack()
Traverserpublic <S> void sack(S object)
Traverserpublic int loops()
Traverserpublic int loops(String loopName)
Traverserpublic void initialiseLoops(String stepLabel, String loopName)
Traverser.AdminLoopsStepinitialiseLoops in interface Traverser.Admin<T>initialiseLoops in class AbstractTraverser<T>stepLabel - the label of the step that is being set-up.loopName - the user defined name for referencing the loop counter or null if not setpublic void incrLoops()
Traverser.AdminincrLoops in interface Traverser.Admin<T>incrLoops in class AbstractTraverser<T>public void resetLoops()
Traverser.AdminresetLoops in interface Traverser.Admin<T>resetLoops in class AbstractTraverser<T>public TraversalSideEffects getSideEffects()
Traverser.AdmingetSideEffects in interface Traverser.Admin<T>getSideEffects in class AbstractTraverser<T>public void setSideEffects(TraversalSideEffects sideEffects)
Traverser.AdminTraversal. Given that traversers can move between machines,
it may be important to re-set this when the traverser crosses machine boundaries.setSideEffects in interface Traverser.Admin<T>setSideEffects in class AbstractTraverser<T>sideEffects - the sideEffects of the traversal.public <R> Traverser.Admin<R> split(R r, Step<T,R> step)
Traverser.Adminsplit in interface Traverser.Admin<T>split in class O_Traverser<T>R - The current object type of the childr - The current object of the childstep - The step yielding the splitpublic Traverser.Admin<T> split()
Traverser.Adminsplit in interface Traverser.Admin<T>split in class O_Traverser<T>public void merge(Traverser.Admin<?> other)
Traverser.Adminmerge in interface Traverser.Admin<T>merge in class B_O_Traverser<T>other - the other traverser to merge into this traverser. Once merged, the other can be garbage collected.public int hashCode()
hashCode in class B_O_Traverser<T>protected final boolean equals(B_O_S_SE_SL_Traverser other)
public boolean equals(Object object)
equals in class B_O_Traverser<T>Copyright © 2013–2021 Apache Software Foundation. All rights reserved.