Package com.ibm.wala.ssa
Class SSAConversionInstruction
- java.lang.Object
-
- com.ibm.wala.ssa.SSAInstruction
-
- com.ibm.wala.ssa.SSAConversionInstruction
-
public abstract class SSAConversionInstruction extends SSAInstruction
An instruction which converts a value of one primitive type into another primitive type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.wala.ssa.SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.Visitor
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.ssa.SSAInstruction
iindex, NO_INDEX
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSSAConversionInstruction(int iindex, int result, int val, TypeReference fromType, TypeReference toType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDef()intgetDef(int i)Return the ith defTypeReferencegetFromType()intgetNumberOfDefs()intgetNumberOfUses()TypeReferencegetToType()intgetUse(int j)booleanhasDef()Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g.inthashCode()booleanisFallThrough()StringtoString(SymbolTable symbolTable)voidvisit(SSAInstruction.IVisitor v)Apply an IVisitor to this instruction.-
Methods inherited from class com.ibm.wala.ssa.SSAInstruction
copyForSSA, equals, getExceptionTypes, getValueString, isPEI, toString
-
-
-
-
Constructor Detail
-
SSAConversionInstruction
protected SSAConversionInstruction(int iindex, int result, int val, TypeReference fromType, TypeReference toType)
-
-
Method Detail
-
toString
public String toString(SymbolTable symbolTable)
- Specified by:
toStringin classSSAInstruction
-
visit
public void visit(SSAInstruction.IVisitor v) throws NullPointerException
Description copied from class:SSAInstructionApply an IVisitor to this instruction. We invoke the appropriate IVisitor method according to the type of this instruction.- Specified by:
visitin classSSAInstruction- Throws:
NullPointerException- See Also:
SSAInstruction.visit(IVisitor)
-
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:
SSAInstruction.getDef()
-
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.
-
getNumberOfUses
public int getNumberOfUses()
- Overrides:
getNumberOfUsesin classSSAInstruction- See Also:
SSAInstruction.getNumberOfUses()
-
getNumberOfDefs
public int getNumberOfDefs()
- Overrides:
getNumberOfDefsin classSSAInstruction
-
getToType
public TypeReference getToType()
-
getFromType
public TypeReference getFromType()
-
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)
- See Also:
SSAInstruction.getUse(int)
-
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
-
-