Modifier and Type | Method and 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 of
Step which can be added to the traversal for the provided operator. |
static <A extends TraversalStrategy> |
findStrategies(Bytecode bytecode,
Class<A> clazz)
Parses
Bytecode to find TraversalStrategy 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 standard
GraphOp options. |
static void |
removeBindings(Bytecode bytecode) |
public static <A extends TraversalStrategy> Iterator<A> findStrategies(Bytecode bytecode, Class<A> clazz)
Bytecode
to find TraversalStrategy
objects added in the source instructions.public static Bytecode filterInstructions(Bytecode bytecode, Predicate<Bytecode.Instruction> predicate)
public static boolean isGraphOperation(Bytecode bytecode)
GraphOp
options.public static void removeBindings(Bytecode bytecode)
public static void detachElements(Bytecode bytecode)
public static List<Class<? extends Step>> findPossibleTraversalSteps(String operator)
Step
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.
operator
- Graph operatorStep
(s)Copyright © 2013–2023 Apache Software Foundation. All rights reserved.