public final class AsmUtils
extends java.lang.Object
Constructor and Description |
---|
AsmUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
commonToInternalTypeName(java.lang.Class<?> type)
Given a class, return a string representation of its name which is
suitable for use as an internal class name.
|
static java.lang.String |
commonToInternalTypeName(java.lang.String name)
Given a type name, return a string representation which is suitable for use as an internal
type name; that is, replace all dot separators in the name with forward slashes.
|
static void |
pushInt(org.objectweb.asm.MethodVisitor mv,
int value)
Helper method to choose the most appropriate instruction with which to
push an integer value onto the stack.
|
public static java.lang.String commonToInternalTypeName(java.lang.String name)
name
- External class name which uses dot separators.public static java.lang.String commonToInternalTypeName(java.lang.Class<?> type)
type
- A class.public static void pushInt(org.objectweb.asm.MethodVisitor mv, int value)
mv
- CodeVisitor
used to write the instruction.value
- Integer value to be pushed.