Class AbstractExplanation
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.util.AbstractExplanation
- Direct Known Subclasses:
TraversalExplanation
Base class for "TraversalExplanation" instances and centralizes the key functionality which is the job of doing
prettyPrint().- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFirst string is the traversal strategy, the second is the category and the third is the traversal representation at that point.protected abstract StringprettyPrint(int maxLineLength) A pretty-print representation of the traversal explanation.static voidspacing(String finalTraversal, int maxStrategyColumnLength, StringBuilder builder) toString()
-
Constructor Details
-
AbstractExplanation
public AbstractExplanation()
-
-
Method Details
-
getStrategyTraversalsAsString
-
getTraversalStepsAsString
-
getOriginalTraversalAsString
-
getIntermediates
First string is the traversal strategy, the second is the category and the third is the traversal representation at that point. -
toString
-
prettyPrint
-
prettyPrint
A pretty-print representation of the traversal explanation.- Returns:
- a
Stringrepresentation of the traversal explanation
-
spacing
public static void spacing(String finalTraversal, int maxStrategyColumnLength, StringBuilder builder)
-