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 <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)
-
-