|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.techtrader.modules.tools.bytecode
Class ClassConstantInstruction

java.lang.Objectcom.techtrader.modules.tools.bytecode.ClassConstantInstruction
- public class ClassConstantInstruction
- extends java.lang.Object
Pseudo-instruction used to place Class types 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 chanced. Also, this instruction is invalid as the target of any jump instruction or exception handler.
| Field Summary | |
private BCClass |
_class
|
private Code |
_code
|
private Instruction |
_ins
|
private boolean |
_invalid
|
| Constructor Summary | |
protected |
ClassConstantInstruction(BCClass bc,
Code code,
Instruction nop)
Protected constructor. |
| Method Summary | |
private BCField |
addClassField(java.lang.String name)
|
private BCMethod |
addClassLoadMethod()
|
Instruction |
setClassName(java.lang.String name)
Set the type of class being loaded. |
private void |
setClassName(java.lang.String name,
java.lang.Class wrapper)
|
Instruction |
setClassType(java.lang.Class type)
Set the type of class being loaded. |
private void |
setObject(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
_ins
private Instruction _ins
_code
private Code _code
_class
private BCClass _class
_invalid
private boolean _invalid
| Constructor Detail |
ClassConstantInstruction
protected ClassConstantInstruction(BCClass bc, Code code, Instruction nop)
- Protected constructor.
| Method Detail |
setClassType
public Instruction setClassType(java.lang.Class type)
- Set the type of class being loaded.
setClassName
public Instruction setClassName(java.lang.String name)
- Set the type of class being loaded.
setClassName
private void setClassName(java.lang.String name, java.lang.Class wrapper)
setObject
private void setObject(java.lang.String name)
addClassField
private BCField addClassField(java.lang.String name)
addClassLoadMethod
private BCMethod addClassLoadMethod()
|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.techtrader.modules.tools.bytecode.ClassConstantInstruction