com.ibm.wala.ssa
Class SSAAbstractUnaryInstruction

java.lang.Object
  extended by com.ibm.wala.ssa.SSAInstruction
      extended by com.ibm.wala.ssa.SSAAbstractUnaryInstruction
All Implemented Interfaces:
IInstruction
Direct Known Subclasses:
EachElementGetInstruction, EachElementHasNextInstruction, JavaScriptTypeOfInstruction, SSAUnaryOpInstruction

public abstract class SSAAbstractUnaryInstruction
extends SSAInstruction


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.wala.ssa.SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.Visitor
 
Field Summary
protected  int result
           
protected  int val
           
 
Constructor Summary
protected SSAAbstractUnaryInstruction(int result, int val)
           
 
Method Summary
 int getDef()
           
 int getDef(int i)
          Return the ith def
 int getNumberOfDefs()
           
 int getNumberOfUses()
          Method getNumberOfUses.
 int getUse(int j)
          Method getUse.
 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()
           
 
Methods inherited from class com.ibm.wala.ssa.SSAInstruction
copyForSSA, equals, getExceptionTypes, getValueString, isPEI, toString, toString, visit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

result

protected final int result

val

protected final int val
Constructor Detail

SSAAbstractUnaryInstruction

protected SSAAbstractUnaryInstruction(int result,
                                      int val)
Method Detail

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