Class StaticTypesClosureWriter

java.lang.Object
org.codehaus.groovy.classgen.asm.ClosureWriter
org.codehaus.groovy.classgen.asm.sc.StaticTypesClosureWriter

public class StaticTypesClosureWriter extends ClosureWriter
Writer responsible for generating closure classes in statically compiled mode.
  • Constructor Details

    • StaticTypesClosureWriter

      public StaticTypesClosureWriter(WriterController wc)
      Creates a closure writer for statically compiled code generation.
  • Method Details

    • createClosureClass

      protected ClassNode createClosureClass(ClosureExpression expression, int mods)
      Creates a new inner class node representing the compiled form of a closure expression.
      Overrides:
      createClosureClass in class ClosureWriter
      Parameters:
      expression - the closure expression to compile
      mods - the access modifiers for the generated class
      Returns:
      the newly created closure class node