Class GeneratorUtils

java.lang.Object
com.griefdefender.api.util.generator.GeneratorUtils

public final class GeneratorUtils extends Object
  • Method Details

    • getClassName

      public static String getClassName(String targetPackage, Class<?> clazz, String classifier)
      Gets a class name with the provided classifier.
      Parameters:
      targetPackage - The target package
      clazz - The parent class
      classifier - The classifier
      Returns:
      The java class name equivalent with the provided classifier
    • visitBoxingMethod

      public static void visitBoxingMethod(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type type)
      Insert the necessary methods to box a primitive type (if the given type is a primitive object).
      Parameters:
      mv - The method visitor
      type - The type to unbox
    • visitUnboxingMethod

      public static void visitUnboxingMethod(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type type)
      Insert the necessary methods to unbox a primitive type (if the given type is a primitive).
      Parameters:
      mv - The method visitor
      type - The type to unbox