Class SSAAbstractUnaryInstruction
java.lang.Object
com.ibm.wala.ssa.SSAInstruction
com.ibm.wala.ssa.SSAAbstractUnaryInstruction
- Direct Known Subclasses:
JavaScriptTypeOfInstruction, PrototypeLookup, SSALoadIndirectInstruction, SSAUnaryOpInstruction
-
Nested Class Summary
Nested classes/interfaces inherited from class SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.Visitor -
Field Summary
FieldsFields inherited from class SSAInstruction
NO_INDEX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSSAAbstractUnaryInstruction(int iindex, int result, int val) -
Method Summary
Methods inherited from class SSAInstruction
copyForSSA, equals, getExceptionTypes, getValueString, iIndex, isPEI, setInstructionIndex, toString, toString, visit
-
Field Details
-
result
protected final int result -
val
protected final int val
-
-
Constructor Details
-
SSAAbstractUnaryInstruction
protected SSAAbstractUnaryInstruction(int iindex, int result, int val)
-
-
Method Details
-
hasDef
public boolean hasDef()Description copied from class:SSAInstructionDoes this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g. for invoke instructions).- Overrides:
hasDefin classSSAInstruction- Returns:
- true if the instruction does define a proper value.
- See Also:
-
getDef
public int getDef()- Overrides:
getDefin classSSAInstruction
-
getDef
public int getDef(int i) Description copied from class:SSAInstructionReturn the ith def- Overrides:
getDefin classSSAInstruction- Parameters:
i- number of the def, starting at 0.
-
getNumberOfDefs
public int getNumberOfDefs()- Overrides:
getNumberOfDefsin classSSAInstruction- See Also:
-
getNumberOfUses
public int getNumberOfUses()- Overrides:
getNumberOfUsesin classSSAInstruction
-
getUse
public int getUse(int j) - Overrides:
getUsein classSSAInstruction- Returns:
- value number representing the jth use in this instruction. -1 means TOP (i.e., the value doesn't matter)
-
hashCode
public int hashCode()- Specified by:
hashCodein classSSAInstruction
-
isFallThrough
public boolean isFallThrough()- Specified by:
isFallThroughin classSSAInstruction- Returns:
- true iff this instruction may fall through to the next
-