|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object serp.bytecode.ClassConstantInstruction
public class ClassConstantInstruction
Pseudo-instruction used to place Class
objects onto the stack.
This logical instruction may actually involve a large chunk of code, and
may even add static synthetic fields and methods to the owning class.
Therefore, once the type of class being loaded is set, it cannot
be changed. Also, this instruction is invalid as the target of
any jump instruction or exception handler.
Method Summary | |
---|---|
Instruction |
setClass(BCClass type)
Set the type of class being loaded. |
Instruction |
setClass(Class type)
Set the type of class being loaded. |
Instruction |
setClass(String name)
Set the type of class being loaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Instruction setClass(String name)
IllegalStateException
- if type has already been setpublic Instruction setClass(Class type)
IllegalStateException
- if type has already been setpublic Instruction setClass(BCClass type)
IllegalStateException
- if type has already been set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |