Package soot.jimple
Class ParameterRef
- java.lang.Object
-
- soot.jimple.ParameterRef
-
- All Implemented Interfaces:
Serializable,EquivTo,IdentityRef,Ref,Switchable,Value
public class ParameterRef extends Object implements IdentityRef
ParameterRefobjects are used byBodyobjects to refer to the parameter slots on method entry.
For instance, in an instance method, the first statement will often bethis := @parameter0;- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterRef(Type paramType, int number)Constructs a ParameterRef object of the specified type, representing the specified parameter number.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Used with RefSwitch.Objectclone()Create a new ParameterRef object with the same paramType and number.intequivHashCode()Returns a (not necessarily fixed) hash code for this object.booleanequivTo(Object o)Returns true if this object is equivalent to o.intgetIndex()Returns the index of this ParameterRef.TypegetType()Returns the type of this ParameterRef.List<ValueBox>getUseBoxes()Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.voidsetIndex(int index)Sets the index of this ParameterRef.StringtoString()Converts the given ParameterRef into a String i.e.voidtoString(UnitPrinter up)
-
-
-
Constructor Detail
-
ParameterRef
public ParameterRef(Type paramType, int number)
Constructs a ParameterRef object of the specified type, representing the specified parameter number.
-
-
Method Detail
-
equivTo
public boolean equivTo(Object o)
Description copied from interface:EquivToReturns true if this object is equivalent to o.
-
equivHashCode
public int equivHashCode()
Description copied from interface:EquivToReturns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects.- Specified by:
equivHashCodein interfaceEquivTo
-
clone
public Object clone()
Create a new ParameterRef object with the same paramType and number.
-
toString
public String toString()
Converts the given ParameterRef into a String i.e.@parameter0: .int.
-
toString
public void toString(UnitPrinter up)
-
getIndex
public int getIndex()
Returns the index of this ParameterRef.
-
setIndex
public void setIndex(int index)
Sets the index of this ParameterRef.
-
getUseBoxes
public final List<ValueBox> getUseBoxes()
Description copied from interface:ValueReturns a List of boxes corresponding to Values which are used by (ie contained within) this Value.- Specified by:
getUseBoxesin interfaceValue
-
getType
public Type getType()
Returns the type of this ParameterRef.
-
apply
public void apply(Switch sw)
Used with RefSwitch.- Specified by:
applyin interfaceSwitchable
-
-