Class DgmConverter

java.lang.Object
org.codehaus.groovy.tools.DgmConverter

public class DgmConverter extends Object
Generates GeneratedMetaMethod adapter classes and metadata for the default Groovy methods.
  • Constructor Details

    • DgmConverter

      public DgmConverter()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Generates DGM adapter classes into the target directory.
      Parameters:
      args - optional --info flag and target directory
      Throws:
      IOException - if generated classes or metadata cannot be written
    • loadParameters

      protected static void loadParameters(CachedMethod method, org.objectweb.asm.MethodVisitor mv)
      Loads and casts the non-receiver arguments for the supplied cached method from an Object[] local variable.
      Parameters:
      method - the cached method whose parameters are being loaded
      mv - the visitor receiving the bytecode instructions