public class B_NL_O_S_SE_SL_Traverser<T> extends B_O_S_SE_SL_Traverser<T>
Traverser.Admin<T>
Attachable.Exceptions, Attachable.Method
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.collections.map.ReferenceMap |
loopNames |
protected Stack<LabelledCounter> |
nestedLoops |
loopName, loops, sack, sideEffects
bulk, future
tags
t
HALT
Modifier | Constructor and Description |
---|---|
protected |
B_NL_O_S_SE_SL_Traverser() |
|
B_NL_O_S_SE_SL_Traverser(T t,
Step<T,?> step,
long initialBulk) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
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.
|
equals, getLoopNames, getSideEffects, sack, sack, setSideEffects
bulk, equals, getStepId, setBulk, setStepId
equals, getTags
addLabels, attach, clone, detach, dropLabels, dropPath, get, keepLabels, path, set, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
isHalted
asAdmin, compareTo, path, path, sideEffects, sideEffects
protected Stack<LabelledCounter> nestedLoops
protected org.apache.commons.collections.map.ReferenceMap loopNames
public int loops()
Traverser
public int loops(String loopName)
Traverser
public void initialiseLoops(String stepLabel, String loopName)
Traverser.Admin
LoopsStep
initialiseLoops
in interface Traverser.Admin<T>
initialiseLoops
in class B_O_S_SE_SL_Traverser<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.Admin
incrLoops
in interface Traverser.Admin<T>
incrLoops
in class B_O_S_SE_SL_Traverser<T>
public void resetLoops()
Traverser.Admin
resetLoops
in interface Traverser.Admin<T>
resetLoops
in class B_O_S_SE_SL_Traverser<T>
public <R> Traverser.Admin<R> split(R r, Step<T,R> step)
Traverser.Admin
split
in interface Traverser.Admin<T>
split
in class B_O_S_SE_SL_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.Admin
split
in interface Traverser.Admin<T>
split
in class B_O_S_SE_SL_Traverser<T>
public void merge(Traverser.Admin<?> other)
Traverser.Admin
merge
in interface Traverser.Admin<T>
merge
in class B_O_S_SE_SL_Traverser<T>
other
- the other traverser to merge into this traverser. Once merged, the other can be garbage collected.public boolean equals(Object o)
equals
in class B_O_S_SE_SL_Traverser<T>
public int hashCode()
hashCode
in class B_O_S_SE_SL_Traverser<T>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.