public class ClassConstantInstruction extends Object
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.Modifier and Type | Method and Description |
---|---|
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.
|
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 setCopyright © 2002–2019. All rights reserved.