public class ImmutableExplanation extends TraversalExplanation
TraversalExplanation
which doesn't re-calculate the "explanation" from
the raw traversal data each time the explanation is displayed.strategyTraversals, traversal
Constructor and Description |
---|
ImmutableExplanation(String originalTraversal,
List<<any>> intermediates) |
Modifier and Type | Method and Description |
---|---|
ImmutableExplanation |
asImmutable() |
protected Stream<<any>> |
getIntermediates()
First string is the traversal strategy, the second is the category and the third is the traversal
representation at that point.
|
Traversal.Admin<?,?> |
getOriginalTraversal()
Get the original
Traversal used to create this explanation. |
protected String |
getOriginalTraversalAsString() |
List<<any>> |
getStrategyTraversals()
Get the list of
TraversalStrategy applications. |
protected Stream<String> |
getStrategyTraversalsAsString() |
protected Stream<String> |
getTraversalStepsAsString() |
prettyPrint, prettyPrint, spacing, toString
public List<<any>> getStrategyTraversals()
TraversalExplanation
TraversalStrategy
applications. For strategy, the resultant mutated Traversal
is provided.getStrategyTraversals
in class TraversalExplanation
public Traversal.Admin<?,?> getOriginalTraversal()
TraversalExplanation
Traversal
used to create this explanation.getOriginalTraversal
in class TraversalExplanation
public ImmutableExplanation asImmutable()
asImmutable
in class TraversalExplanation
protected Stream<String> getStrategyTraversalsAsString()
getStrategyTraversalsAsString
in class TraversalExplanation
protected Stream<String> getTraversalStepsAsString()
getTraversalStepsAsString
in class AbstractExplanation
protected String getOriginalTraversalAsString()
getOriginalTraversalAsString
in class TraversalExplanation
protected Stream<<any>> getIntermediates()
AbstractExplanation
getIntermediates
in class TraversalExplanation
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.