Class SingleInstructionInline
java.lang.Object
org.jfuncmachine.compiler.model.InlineFunction
org.jfuncmachine.compiler.model.inline.SingleInstructionInline
Represents an inline function that generates a single instruction
-
Field Summary
FieldsFields inherited from class org.jfuncmachine.compiler.model.InlineFunction
parameterTypes, returnType -
Constructor Summary
ConstructorsConstructorDescriptionSingleInstructionInline(Type[] parameterTypes, Type returnType, int opcode) Create a new single instruction inline -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(ClassGenerator generator, Environment env) Generate the byte code for the functionMethods inherited from class org.jfuncmachine.compiler.model.InlineFunction
getReturnType
-
Field Details
-
opcode
public final int opcodeThe opcode that this function executes
-
-
Constructor Details
-
SingleInstructionInline
Create a new single instruction inline- Parameters:
parameterTypes- The parameter types of the functionreturnType- The return type of the functionopcode- The opcode that this function executes
-
-
Method Details
-
generate
Description copied from class:InlineFunctionGenerate the byte code for the function- Specified by:
generatein classInlineFunction- Parameters:
generator- The class generator current being used to generate the classenv- The symbol environment available to this function
-