public class AsmUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ACC_ABSTRACT |
static int |
ACC_ANNOTATION |
static int |
ACC_BRIDGE |
static int |
ACC_ENUM |
static int |
ACC_FINAL |
static int |
ACC_INTERFACE |
static int |
ACC_NATIVE |
static int |
ACC_PRIVATE |
static int |
ACC_PROTECTED |
static int |
ACC_PUBLIC |
static int |
ACC_STATIC |
static int |
ACC_STRICT |
static int |
ACC_SUPER |
static int |
ACC_SYNCHRONIZED |
static int |
ACC_SYNTHETIC |
static int |
ACC_TRANSIENT |
static int |
ACC_VARARGS |
static int |
ACC_VOLATILE |
static java.lang.String |
L_SIGNATURE_JAVA_LANG_CLASS |
static java.lang.String |
L_SIGNATURE_JAVA_LANG_OBJECT |
static java.lang.String |
L_SIGNATURE_JAVA_LANG_STRING |
static java.lang.String |
SIGNATURE_JAVA_LANG_BOOLEAN |
static java.lang.String |
SIGNATURE_JAVA_LANG_BYTE |
static java.lang.String |
SIGNATURE_JAVA_LANG_CHARACTER |
static java.lang.String |
SIGNATURE_JAVA_LANG_CLASS |
static java.lang.String |
SIGNATURE_JAVA_LANG_DOUBLE |
static java.lang.String |
SIGNATURE_JAVA_LANG_FLOAT |
static java.lang.String |
SIGNATURE_JAVA_LANG_INTEGER |
static java.lang.String |
SIGNATURE_JAVA_LANG_LONG |
static java.lang.String |
SIGNATURE_JAVA_LANG_OBJECT |
static java.lang.String |
SIGNATURE_JAVA_LANG_SHORT |
static java.lang.String |
SIGNATURE_JAVA_LANG_VOID |
static int |
TYPE_ANNOTATION |
static int |
TYPE_ARRAY |
static int |
TYPE_BOOLEAN |
static int |
TYPE_BYTE |
static int |
TYPE_CHAR |
static int |
TYPE_DOUBLE |
static int |
TYPE_FLOAT |
static int |
TYPE_INT |
static int |
TYPE_LONG |
static int |
TYPE_REFERENCE |
static int |
TYPE_SHORT |
static int |
TYPE_VOID |
Constructor and Description |
---|
AsmUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
booleanValue(MethodVisitor mv)
Converts
Boolean object to a boolean . |
static void |
byteValue(MethodVisitor mv)
Converts
Byte object to a byte . |
static void |
charValue(MethodVisitor mv)
Converts
Character object to a char . |
static void |
doubleValue(MethodVisitor mv)
Converts
Double object to a double . |
static void |
floatValue(MethodVisitor mv)
Converts
Float object to a float . |
static void |
intValue(MethodVisitor mv)
Converts
Integer object to an int . |
static void |
longValue(MethodVisitor mv)
Converts
Long object to a long . |
static java.lang.String |
removeGenericsFromSignature(java.lang.String signature) |
static void |
shortValue(MethodVisitor mv)
Converts
Short object to a short . |
static java.lang.String |
typedesc2ClassName(java.lang.String desc)
Converts bytecode-like description to java class name that can be loaded
with a classloader.
|
static java.lang.String |
typedescToSignature(java.lang.String desc)
Returns java-like signature of a bytecode-like description.
|
static java.lang.String |
typedescToSignature(java.lang.String desc,
MutableInteger from)
Returns java-like signature of a bytecode-like description.
|
static char |
typeNameToOpcode(java.lang.String typeName)
Returns type-name to type char.
|
static java.lang.String |
typeref2Name(java.lang.String desc)
Converts type reference to java-name.
|
static java.lang.String |
typeToSignature(java.lang.Class type)
Converts java-class name ("foo.Bar") to bytecode-name ("foo/bar").
|
static java.lang.String |
typeToSignature(java.lang.String className)
Converts java-class name ("foo.Bar") to bytecode-signature ("foo/bar").
|
static java.lang.String |
typeToTyperef(java.lang.Class type)
Converts type to byteccode type ref.
|
static void |
valueOfBoolean(MethodVisitor mv) |
static void |
valueOfByte(MethodVisitor mv) |
static void |
valueOfCharacter(MethodVisitor mv) |
static void |
valueOfDouble(MethodVisitor mv) |
static void |
valueOfFloat(MethodVisitor mv) |
static void |
valueOfInteger(MethodVisitor mv) |
static void |
valueOfLong(MethodVisitor mv) |
static void |
valueOfShort(MethodVisitor mv) |
public static final int TYPE_BYTE
public static final int TYPE_CHAR
public static final int TYPE_DOUBLE
public static final int TYPE_FLOAT
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_REFERENCE
public static final int TYPE_SHORT
public static final int TYPE_BOOLEAN
public static final int TYPE_VOID
public static final int TYPE_ARRAY
public static final int TYPE_ANNOTATION
public static final int ACC_PUBLIC
public static final int ACC_PRIVATE
public static final int ACC_PROTECTED
public static final int ACC_STATIC
public static final int ACC_FINAL
public static final int ACC_SUPER
public static final int ACC_SYNCHRONIZED
public static final int ACC_VOLATILE
public static final int ACC_BRIDGE
public static final int ACC_VARARGS
public static final int ACC_TRANSIENT
public static final int ACC_NATIVE
public static final int ACC_INTERFACE
public static final int ACC_ABSTRACT
public static final int ACC_STRICT
public static final int ACC_SYNTHETIC
public static final int ACC_ANNOTATION
public static final int ACC_ENUM
public static final java.lang.String SIGNATURE_JAVA_LANG_OBJECT
public static final java.lang.String SIGNATURE_JAVA_LANG_CLASS
public static final java.lang.String SIGNATURE_JAVA_LANG_BYTE
public static final java.lang.String SIGNATURE_JAVA_LANG_CHARACTER
public static final java.lang.String SIGNATURE_JAVA_LANG_SHORT
public static final java.lang.String SIGNATURE_JAVA_LANG_INTEGER
public static final java.lang.String SIGNATURE_JAVA_LANG_BOOLEAN
public static final java.lang.String SIGNATURE_JAVA_LANG_LONG
public static final java.lang.String SIGNATURE_JAVA_LANG_FLOAT
public static final java.lang.String SIGNATURE_JAVA_LANG_DOUBLE
public static final java.lang.String SIGNATURE_JAVA_LANG_VOID
public static final java.lang.String L_SIGNATURE_JAVA_LANG_OBJECT
public static final java.lang.String L_SIGNATURE_JAVA_LANG_STRING
public static final java.lang.String L_SIGNATURE_JAVA_LANG_CLASS
public static java.lang.String typedesc2ClassName(java.lang.String desc)
public static java.lang.String typeref2Name(java.lang.String desc)
public static char typeNameToOpcode(java.lang.String typeName)
public static java.lang.String typedescToSignature(java.lang.String desc)
public static java.lang.String typedescToSignature(java.lang.String desc, MutableInteger from)
<field_signature> ::= <field_type>
<field_type> ::= <base_type>|<object_type>|<array_type>
<base_type> ::= B|C|D|F|I|J|S|Z
<object_type> ::= L<fullclassname>;
<array_type> ::= [<field_type>
The meaning of the base types is as follows:
B byte signed byte
C char character
D double double precision IEEE float
F float single precision IEEE float
I int integer
J long long integer
L<fullclassname>; ... an object of the given class
S short signed short
Z boolean true or false
[<field sig> ... array
This method converts this string into a Java type declaration such as
String[]
.public static java.lang.String typeToSignature(java.lang.String className)
public static java.lang.String typeToSignature(java.lang.Class type)
public static java.lang.String typeToTyperef(java.lang.Class type)
public static void intValue(MethodVisitor mv)
Integer
object to an int
.public static void longValue(MethodVisitor mv)
Long
object to a long
.public static void floatValue(MethodVisitor mv)
Float
object to a float
.public static void doubleValue(MethodVisitor mv)
Double
object to a double
.public static void byteValue(MethodVisitor mv)
Byte
object to a byte
.public static void shortValue(MethodVisitor mv)
Short
object to a short
.public static void booleanValue(MethodVisitor mv)
Boolean
object to a boolean
.public static void charValue(MethodVisitor mv)
Character
object to a char
.public static void valueOfInteger(MethodVisitor mv)
public static void valueOfLong(MethodVisitor mv)
public static void valueOfFloat(MethodVisitor mv)
public static void valueOfDouble(MethodVisitor mv)
public static void valueOfByte(MethodVisitor mv)
public static void valueOfShort(MethodVisitor mv)
public static void valueOfBoolean(MethodVisitor mv)
public static void valueOfCharacter(MethodVisitor mv)
public static java.lang.String removeGenericsFromSignature(java.lang.String signature)
Copyright © 2003-present Jodd Team