Package org.jfuncmachine.compiler.model
Class InlineFunction
java.lang.Object
org.jfuncmachine.compiler.model.InlineFunction
- Direct Known Subclasses:
SingleInstructionInline
The base class for inline functions (functions where the instructions are directly inserted
into the byte code rather than generating a function call)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInlineFunction(Type[] parameterTypes, Type returnType) Create an inline function -
Method Summary
Modifier and TypeMethodDescriptionabstract voidgenerate(ClassGenerator generator, Environment env) Generate the byte code for the functionGet the return type of the function
-
Field Details
-
parameterTypes
The types of each function parameter -
returnType
The return type of the function
-
-
Constructor Details
-
InlineFunction
Create an inline function- Parameters:
parameterTypes- The types of each function parameterreturnType- The return type of the function
-
-
Method Details
-
getReturnType
Get the return type of the function- Returns:
- The return type of this function
-
generate
Generate the byte code for the function- Parameters:
generator- The class generator current being used to generate the classenv- The symbol environment available to this function
-