Class StaticInitializerDef


public class StaticInitializerDef extends MethodDef
A special version of MethodDef for defining a static initializer
  • Constructor Details

    • StaticInitializerDef

      public StaticInitializerDef(Expression body)
      Create a constructor definition
      Parameters:
      body - The code to execute for this constructor
    • StaticInitializerDef

      public StaticInitializerDef(Expression body, String filename, int lineNumber)
      Create a constructor definition
      Parameters:
      body - The code to execute for this constructor
      filename - The name of the file where this constructor is defined
      lineNumber - The line number in the source file where this constructor is defined