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<org.javatuples.Triplet<String,String,String>> intermediates) |
Modifier and Type | Method and Description |
---|---|
ImmutableExplanation |
asImmutable() |
protected Stream<org.javatuples.Triplet<String,String,String>> |
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<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> |
getStrategyTraversals()
Get the list of
TraversalStrategy applications. |
protected Stream<String> |
getStrategyTraversalsAsString() |
protected Stream<String> |
getTraversalStepsAsString() |
prettyPrint, prettyPrint, spacing, toString
public List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> 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<org.javatuples.Triplet<String,String,String>> getIntermediates()
AbstractExplanation
getIntermediates
in class TraversalExplanation
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.