Package org.jfuncmachine.compiler.model
Class StaticInitializerDef
java.lang.Object
org.jfuncmachine.compiler.model.SourceElement
org.jfuncmachine.compiler.model.MethodDef
org.jfuncmachine.compiler.model.StaticInitializerDef
A special version of MethodDef for defining a static initializer
-
Field Summary
Fields inherited from class org.jfuncmachine.compiler.model.MethodDef
access, body, isLambda, isTailCallable, name, numCapturedParameters, parameters, returnType, startLabelFields inherited from class org.jfuncmachine.compiler.model.SourceElement
filename, lineNumber -
Constructor Summary
ConstructorsConstructorDescriptionCreate a constructor definitionStaticInitializerDef(Expression body, String filename, int lineNumber) Create a constructor definition -
Method Summary
Methods inherited from class org.jfuncmachine.compiler.model.MethodDef
getReturnType, getTailCallVersion, resetMethods inherited from class org.jfuncmachine.compiler.model.SourceElement
generateException
-
Constructor Details
-
StaticInitializerDef
Create a constructor definition- Parameters:
body- The code to execute for this constructor
-
StaticInitializerDef
Create a constructor definition- Parameters:
body- The code to execute for this constructorfilename- The name of the file where this constructor is definedlineNumber- The line number in the source file where this constructor is defined
-