Class GeneratorUtils
java.lang.Object
com.griefdefender.api.util.generator.GeneratorUtils
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetClassName(String targetPackage, Class<?> clazz, String classifier) Gets a class name with the provided classifier.static voidvisitBoxingMethod(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).static voidvisitUnboxingMethod(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).
-
Method Details
-
getClassName
Gets a class name with the provided classifier.- Parameters:
targetPackage- The target packageclazz- The parent classclassifier- 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 visitortype- 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 visitortype- The type to unbox
-