JaCIL Framework API

InstructionTranslatorFactory.CreateVariableTranslator Method 

Returns a new variable instruction translator.

protected virtual IInstructionTranslator CreateVariableTranslator(
   IInstructionContext context,
   int jvmInstructionBase,
   bool isParameter,
   int embeddedBase
);

Parameters

context
The context of the translator
jvmInstructionBase
The base JVM variable instruction to derive from
isParameter
Whether the item to be loaded is a parameter. If false, it is considered an argument.
embeddedBase
The base CIL opcode for variants that the offset is embedded. This should be -1 if the operand of the instruction is the index.

Return Value

The translator instance.

Remarks

A derived class would override this if a different translator instance is desired.

See Also

InstructionTranslatorFactory Class | JaCIL.Compiler.Standard.Translator Namespace