Class Bytecode
A language agnostic representation of ITraversal mutations.
public class Bytecode
- Inheritance
-
Bytecode
- Derived
- Inherited Members
Remarks
Bytecode is simply a list of ordered instructions. Bytecode can be serialized between environments and machines by way of a GraphSON representation. Thus, Gremlin.Net can create bytecode in C# and ship it to Gremlin-Java for evaluation in Java.
Constructors
Bytecode()
Initializes a new instance of the Bytecode class.
public Bytecode()
Bytecode(Bytecode)
Initializes a new instance of the Bytecode class.
public Bytecode(Bytecode byteCode)
Parameters
Properties
SourceInstructions
Gets the traversal source instructions.
public List<Instruction> SourceInstructions { get; }
Property Value
StepInstructions
Gets the ITraversal instructions.
public List<Instruction> StepInstructions { get; }
Property Value
Methods
AddSource(string, params object?[])
Add a traversal source instruction to the bytecode.
public void AddSource(string sourceName, params object?[] args)
Parameters
sourceName
stringThe traversal source method name (e.g. withSack()).
args
object[]The traversal source method arguments.
AddStep(string, params object?[])
Adds a ITraversal instruction to the bytecode.
public void AddStep(string stepName, params object?[] args)
Parameters
stepName
stringThe traversal method name (e.g. out()).
args
object[]The traversal method arguments.
ToString()
public override string ToString()