public class BytecodeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION |
static int |
ENUM |
Modifier and Type | Method and Description |
---|---|
static void |
addLoadInstruction(org.jboss.classfilewriter.code.CodeAttribute code,
String type,
int variable)
Adds the correct load instruction based on the type descriptor
|
static void |
pushClassType(org.jboss.classfilewriter.code.CodeAttribute b,
String classType)
Pushes a class type onto the stack from the string representation This can
also handle primitives
|
public static final int ENUM
public static final int ANNOTATION
public static void addLoadInstruction(org.jboss.classfilewriter.code.CodeAttribute code, String type, int variable)
code
- the bytecode to add the instruction totype
- the type of the variablevariable
- the variable numberpublic static void pushClassType(org.jboss.classfilewriter.code.CodeAttribute b, String classType)
b
- the bytecodeclassType
- the type descriptor for the class or primitive to push.
This will accept both the java.lang.Object form and the
Ljava/lang/Object; formCopyright © 2016. All rights reserved.