public class ASMUtil
extends java.lang.Object
| Constructor and Description |
|---|
ASMUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
autoBoxing(org.objectweb.asm.MethodVisitor mv,
java.lang.Class<?> clz)
Append the call of proper autoboxing method for the given primitif 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 primitif 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(java.lang.Class<?> type,
FieldFilter filter)
Extract all Accessor for the field of the given class.
|
static java.lang.String |
getGetterName(java.lang.String key) |
static java.lang.String |
getIsName(java.lang.String key) |
static java.lang.String |
getSetterName(java.lang.String key) |
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,
java.lang.Class<?> clz)
public static Accessor[] getAccessors(java.lang.Class<?> type, FieldFilter filter)
type - protected static void autoBoxing(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
protected static void autoUnBoxing1(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
protected static void autoUnBoxing2(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type fieldType)
public static org.objectweb.asm.Label[] newLabels(int cnt)
cnt - number of label to returnpublic static java.lang.String getSetterName(java.lang.String key)
public static java.lang.String getGetterName(java.lang.String key)
public static java.lang.String getIsName(java.lang.String key)