Class BytecodeHelper
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.util.BytecodeHelper
 
- 
- 
Method SummaryAll 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)static booleanremoveStrategies(Bytecode bytecode, String operator, Class<TraversalStrategy>[] clazzes)
 
- 
- 
- 
Method Detail- 
findStrategiespublic static <A extends TraversalStrategy> Iterator<A> findStrategies(Bytecode bytecode, Class<A> clazz) ParsesBytecodeto findTraversalStrategyobjects added in the source instructions.
 - 
removeStrategiespublic static boolean removeStrategies(Bytecode bytecode, String operator, Class<TraversalStrategy>[] clazzes) 
 - 
filterInstructionspublic static Bytecode filterInstructions(Bytecode bytecode, Predicate<Bytecode.Instruction> predicate) 
 - 
isGraphOperationpublic static boolean isGraphOperation(Bytecode bytecode) Checks if the bytecode is one of the standardGraphOpoptions.
 - 
removeBindingspublic static void removeBindings(Bytecode bytecode) 
 - 
detachElementspublic static void detachElements(Bytecode bytecode) 
 - 
findPossibleTraversalStepspublic 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)
 
 
- 
 
-