public class ASMUtil extends Object
| Constructor and Description |
|---|
ASMUtil()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
autoBoxing(org.objectweb.asm.MethodVisitor mv,
Class<?> clz)
Append the call of proper autoboxing method for the given primitive type.
|
protected static void |
autoBoxing(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
Append the call of proper autoboxing method for the given primitive type.
|
protected static void |
autoUnBoxing1(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
Append the call of proper extract primitive type of an boxed object.
|
protected static void |
autoUnBoxing2(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
Append the call of proper extract primitive type of an boxed object.
|
static Accessor[] |
getAccessors(Class<?> type,
FieldFilter filter)
Extract all Accessor for the field of the given class.
|
static String |
getGetterName(String key)
Generates a getter method name for a given field name.
|
static String |
getIsName(String key)
Generates a boolean getter method name (is-method) for a given field name.
|
static String |
getSetterName(String key)
Generates a setter method name for a given field name.
|
static org.objectweb.asm.Label[] |
newLabels(int cnt)
return a array of new Label (used for switch/case generation)
|
public static void autoBoxing(org.objectweb.asm.MethodVisitor mv,
Class<?> clz)
mv - MethodVisitorclz - expected classpublic static Accessor[] getAccessors(Class<?> type, FieldFilter filter)
type - typefilter - FieldFilterprotected static void autoBoxing(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
mv - MethodVisitorfieldType - expected classprotected static void autoUnBoxing1(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
mv - MethodVisitorfieldType - expected classprotected static void autoUnBoxing2(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
mv - MethodVisitorfieldType - expected classpublic static org.objectweb.asm.Label[] newLabels(int cnt)
cnt - number of label to returnpublic static String getSetterName(String key)
key - the field namepublic static String getGetterName(String key)
key - the field nameCopyright © 2025 Chemouni Uriel. All rights reserved.