public class BytecodeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addLoadInstruction(CodeAttribute code,
String type,
int variable)
Adds the correct load instruction based on the type descriptor
|
static void |
pushClassType(CodeAttribute b,
String classType)
Pushes a class type onto the stack from the string representation This can
also handle primitives
|
public static void addLoadInstruction(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(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 © 2013 Seam Framework. All Rights Reserved.