|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.ssa.SSAInstruction
com.ibm.wala.ssa.SSACheckCastInstruction
public abstract class SSACheckCastInstruction
A checkcast (dynamic type test) instruction. This instruction produces a new value number (like an assignment) if the check succeeds. Note that this instruction generalizes the meaning of checkcast in Java since it supports multiple types for which to check. The meaning is that the case succeeds if the object is of any of the desired types.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.wala.ssa.SSAInstruction |
|---|
SSAInstruction.IVisitor, SSAInstruction.Visitor |
| Constructor Summary | |
|---|---|
protected |
SSACheckCastInstruction(int result,
int val,
TypeReference[] types)
|
| Method Summary | |
|---|---|
SSAInstruction |
copyForSSA(SSAInstructionFactory insts,
int[] defs,
int[] uses)
This method is meant to be used during SSA conversion for an IR that is not in SSA form. |
TypeReference |
getDeclaredResultType()
Deprecated. the system now supports multiple types, so this accessor will not work for all languages. |
TypeReference[] |
getDeclaredResultTypes()
|
int |
getDef()
|
int |
getDef(int i)
Return the ith def |
int |
getNumberOfDefs()
|
int |
getNumberOfUses()
|
int |
getResult()
|
int |
getUse(int j)
|
int |
getVal()
|
boolean |
hasDef()
Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g. |
int |
hashCode()
|
boolean |
isFallThrough()
|
boolean |
isPEI()
|
java.lang.String |
toString()
|
java.lang.String |
toString(SymbolTable symbolTable)
|
void |
visit(SSAInstruction.IVisitor v)
Apply an IVisitor to this instruction. |
| Methods inherited from class com.ibm.wala.ssa.SSAInstruction |
|---|
equals, getExceptionTypes, getValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SSACheckCastInstruction(int result,
int val,
TypeReference[] types)
result - A new value number def'fed by this instruction when the type check succeeds.val - The value being checked by this instructiontype - The type which this instruction checks| Method Detail |
|---|
public SSAInstruction copyForSSA(SSAInstructionFactory insts,
int[] defs,
int[] uses)
SSAInstruction
copyForSSA in class SSAInstructionpublic java.lang.String toString(SymbolTable symbolTable)
toString in class SSAInstructionpublic void visit(SSAInstruction.IVisitor v)
SSAInstruction
visit in class SSAInstructionpublic boolean hasDef()
SSAInstruction
hasDef in class SSAInstructionpublic int getDef()
getDef in class SSAInstructionpublic int getDef(int i)
SSAInstruction
getDef in class SSAInstructioni - number of the def, starting at 0.public int getNumberOfDefs()
getNumberOfDefs in class SSAInstructionpublic int getNumberOfUses()
getNumberOfUses in class SSAInstructionpublic int getUse(int j)
getUse in class SSAInstructionSSAInstruction.getUse(int)@Deprecated public TypeReference getDeclaredResultType()
public TypeReference[] getDeclaredResultTypes()
public int getResult()
public int getVal()
public int hashCode()
hashCode in class SSAInstructionpublic boolean isPEI()
isPEI in class SSAInstructionpublic boolean isFallThrough()
isFallThrough in class SSAInstructionpublic java.lang.String toString()
toString in class SSAInstruction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||