|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.techtrader.modules.tools.bytecode.Instruction | +--com.techtrader.modules.tools.bytecode.CmpInstruction
An instruction comparing two stack values that varies depending on the value type.
Fields inherited from class com.techtrader.modules.tools.bytecode.Instruction |
_byteIndex,
_opcode,
_opcodeTypes,
_owner |
Constructor Summary | |
protected |
CmpInstruction(Code owner)
|
protected |
CmpInstruction(Code owner,
int opcode,
Class type,
int nan)
|
Method Summary | |
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this object. |
protected void |
copy(Instruction orig)
|
boolean |
equals(Object other)
Two cmp instructions are equal if the type and NaN value they reference is equal or the type of either instruction is unset. |
int |
getNaNValue()
Get the number that will be placed on the stack if this instruction is of type float or double and one of the operands is NaN. |
int |
getStackChange()
Return the number of stack positions this instruction pushes or pops during its execution. |
Class |
getType()
Get the type of value to operate on; this is one of: float, double, long. |
String |
getTypeName()
Get the type of value to operate on; this is one of: float, double, long. |
void |
setNaNValue(int nan)
Set the number that will be placed on the stack if this instruction is of type float or double and one of the operands is NaN. |
CmpInstruction |
setType(Class type)
Set the type of value to operate on; primitives that have no direct support (byte, char, boolean, int) will be conerted to long.class. |
CmpInstruction |
setTypeName(String name)
Set the type to load by name. |
Methods inherited from class com.techtrader.modules.tools.bytecode.Instruction |
getByteIndex,
getLength,
getName,
getOpCode,
getOwner,
invalidate,
readData,
setByteIndex,
setOpCode,
writeData |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected CmpInstruction(Code owner)
protected CmpInstruction(Code owner, int opcode, Class type, int nan)
Method Detail |
public Class getType()
public String getTypeName()
public CmpInstruction setType(Class type)
public CmpInstruction setTypeName(String name)
setType(java.lang.Class)
public int getNaNValue()
public void setNaNValue(int nan)
public boolean equals(Object other)
public int getStackChange()
public void acceptVisit(BCVisitor visit)
protected void copy(Instruction orig)
|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |