com.ibm.wala.ssa
Class SSAAbstractUnaryInstruction
java.lang.Object
com.ibm.wala.ssa.SSAInstruction
com.ibm.wala.ssa.SSAAbstractUnaryInstruction
- All Implemented Interfaces:
- IInstruction
- Direct Known Subclasses:
- EachElementGetInstruction, EachElementHasNextInstruction, JavaScriptTypeOfInstruction, SSAUnaryOpInstruction
public abstract class SSAAbstractUnaryInstruction
- extends SSAInstruction
|
Field Summary |
protected int |
result
|
protected int |
val
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
result
protected final int result
val
protected final int val
SSAAbstractUnaryInstruction
protected SSAAbstractUnaryInstruction(int result,
int val)
hasDef
public boolean hasDef()
- Description copied from class:
SSAInstruction
- Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g. for
invoke instructions).
- Overrides:
hasDef in class SSAInstruction
- Returns:
- true if the instruction does define a proper value.
- See Also:
SSAInstruction.getDef()
getDef
public int getDef()
- Overrides:
getDef in class SSAInstruction
getDef
public int getDef(int i)
- Description copied from class:
SSAInstruction
- Return the ith def
- Overrides:
getDef in class SSAInstruction
- Parameters:
i - number of the def, starting at 0.
getNumberOfDefs
public int getNumberOfDefs()
- Overrides:
getNumberOfDefs in class SSAInstruction
- See Also:
SSAInstruction.getNumberOfUses()
getNumberOfUses
public int getNumberOfUses()
- Description copied from class:
SSAInstruction
- Method getNumberOfUses.
- Overrides:
getNumberOfUses in class SSAInstruction
- Returns:
- int
getUse
public int getUse(int j)
- Description copied from class:
SSAInstruction
- Method getUse.
- Overrides:
getUse in class SSAInstruction
- Returns:
- value number representing the jth use in this instruction. -1 means TOP (i.e., the value doesn't matter)
- See Also:
SSAInstruction.getUse(int)
hashCode
public int hashCode()
- Specified by:
hashCode in class SSAInstruction
isFallThrough
public boolean isFallThrough()
- Specified by:
isFallThrough in class SSAInstruction
- Returns:
- true iff this instruction may fall through to the next