|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.shrikeBT.Instruction
com.ibm.wala.shrikeBT.BinaryOpInstruction
public final class BinaryOpInstruction
This class represents binary operator instructions for which the operands and the result all have the same type.
| Nested Class Summary | |
|---|---|
static interface |
BinaryOpInstruction.IOperator
|
static class |
BinaryOpInstruction.Operator
|
| Nested classes/interfaces inherited from class com.ibm.wala.shrikeBT.Instruction |
|---|
Instruction.Visitor |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
BinaryOpInstruction(short opcode)
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
BinaryOpInstruction.Operator |
getOperator()
don't call this unless you really know what you're doing |
int |
getPoppedCount()
|
java.lang.String |
getPushedType(java.lang.String[] types)
Computes the type of data pushed onto the stack, or null if none is pushed. |
byte |
getPushedWordSize()
|
java.lang.String |
getType()
|
int |
hashCode()
|
boolean |
isPEI()
PEI == "Potentially excepting instruction" |
static BinaryOpInstruction |
make(java.lang.String type,
BinaryOpInstruction.Operator operator)
|
java.lang.String |
toString()
Subclasses must implement toString. |
void |
visit(Instruction.Visitor v)
Apply a Visitor to this instruction. |
| Methods inherited from class com.ibm.wala.shrikeBT.Instruction |
|---|
clone, getBranchTargets, getOpcode, isFallThrough, redirectTargets |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected BinaryOpInstruction(short opcode)
| Method Detail |
|---|
public static BinaryOpInstruction make(java.lang.String type,
BinaryOpInstruction.Operator operator)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic BinaryOpInstruction.Operator getOperator()
public int hashCode()
hashCode in class java.lang.Objectpublic int getPoppedCount()
getPoppedCount in class Instructionpublic java.lang.String getPushedType(java.lang.String[] types)
Instruction
getPushedType in class Instructiontypes - the types of the data popped off the stack by this instruction; if
poppedTypes is null, then we don't know the incoming stack types
and the result of this method may be less accuratepublic byte getPushedWordSize()
getPushedWordSize in class Instructionpublic java.lang.String getType()
public void visit(Instruction.Visitor v)
throws java.lang.NullPointerException
Instruction
visit in class Instructionjava.lang.NullPointerExceptionpublic java.lang.String toString()
Instruction
toString in class Instructionpublic boolean isPEI()
IInstruction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||