public abstract class BaseTraversalStep<StepType,DataType> extends java.lang.Object implements TraversalStep<StepType,DataType>
TraversalStep.Operation
Modifier and Type | Field and Description |
---|---|
protected TraversalStep |
child |
protected Traversr |
traversr |
Constructor and Description |
---|
BaseTraversalStep(Traversr traversr,
TraversalStep child) |
Modifier and Type | Method and Description |
---|---|
TraversalStep |
getChild() |
Optional<DataType> |
traverse(StepType tree,
TraversalStep.Operation op,
java.util.Iterator<java.lang.String> keys,
DataType data)
The meat of the Traversal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getStepType, newContainer, overwriteSet, remove
protected final TraversalStep child
protected final Traversr traversr
public BaseTraversalStep(Traversr traversr, TraversalStep child)
public TraversalStep getChild()
getChild
in interface TraversalStep<StepType,DataType>
public final Optional<DataType> traverse(StepType tree, TraversalStep.Operation op, java.util.Iterator<java.lang.String> keys, DataType data)
TraversalStep
traverse
in interface TraversalStep<StepType,DataType>
tree
- tree of data to walkop
- the Operation to perform is this is the last node of the Traversalkeys
- keys to usedata
- the data to place if the operation is SET