Class BytecodeHelper
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.util.BytecodeHelper
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddetachElements(Bytecode bytecode)static BytecodefilterInstructions(Bytecode bytecode, Predicate<Bytecode.Instruction> predicate)static List<Class<? extends Step>>findPossibleTraversalSteps(String operator)Returns a list ofStepwhich can be added to the traversal for the provided operator.static <A extends TraversalStrategy>
Iterator<A>findStrategies(Bytecode bytecode, Class<A> clazz)ParsesBytecodeto findTraversalStrategyobjects added in the source instructions.static Optional<String>getLambdaLanguage(Bytecode bytecode)static booleanisGraphOperation(Bytecode bytecode)Checks if the bytecode is one of the standardGraphOpoptions.static voidremoveBindings(Bytecode bytecode)
-
-
-
Method Detail
-
findStrategies
public static <A extends TraversalStrategy> Iterator<A> findStrategies(Bytecode bytecode, Class<A> clazz)
ParsesBytecodeto findTraversalStrategyobjects added in the source instructions.
-
filterInstructions
public static Bytecode filterInstructions(Bytecode bytecode, Predicate<Bytecode.Instruction> predicate)
-
isGraphOperation
public static boolean isGraphOperation(Bytecode bytecode)
Checks if the bytecode is one of the standardGraphOpoptions.
-
removeBindings
public static void removeBindings(Bytecode bytecode)
-
detachElements
public static void detachElements(Bytecode bytecode)
-
findPossibleTraversalSteps
public static List<Class<? extends Step>> findPossibleTraversalSteps(String operator)
Returns a list ofStepwhich can be added to the traversal for the provided operator.Graph Traversal may or may not add the returned list of steps into the traversal. List only represents possible steps added to traversal given an operator.
- Parameters:
operator- Graph operator- Returns:
- List of possible
Step(s)
-
-