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 void
detachElements(Bytecode bytecode)
static Bytecode
filterInstructions(Bytecode bytecode, Predicate<Bytecode.Instruction> predicate)
static List<Class<? extends Step>>
findPossibleTraversalSteps(String operator)
Returns a list ofStep
which can be added to the traversal for the provided operator.static <A extends TraversalStrategy>
Iterator<A>findStrategies(Bytecode bytecode, Class<A> clazz)
ParsesBytecode
to findTraversalStrategy
objects added in the source instructions.static Optional<String>
getLambdaLanguage(Bytecode bytecode)
static boolean
isGraphOperation(Bytecode bytecode)
Checks if the bytecode is one of the standardGraphOp
options.static void
removeBindings(Bytecode bytecode)
-
-
-
Method Detail
-
findStrategies
public static <A extends TraversalStrategy> Iterator<A> findStrategies(Bytecode bytecode, Class<A> clazz)
ParsesBytecode
to findTraversalStrategy
objects 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 standardGraphOp
options.
-
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 ofStep
which 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)
-
-