Package sootup.core.jimple.common.ref
Class JParameterRef
java.lang.Object
sootup.core.jimple.common.ref.JParameterRef
- All Implemented Interfaces:
EquivTo,IdentityRef,Ref,Value,JimpleIR,Acceptor<RefVisitor>
ParameterRef objects are used by Body objects to refer to the parameter
slots on method entry. For instance, in a method, the first statement will often be
this := @parameter0;
-
Constructor Summary
ConstructorsConstructorDescriptionJParameterRef(@NonNull Type paramType, int number) Constructs a ParameterRef object of the specified type, representing the specified parameter number. -
Method Summary
Modifier and TypeMethodDescription<V extends RefVisitor>
Vaccept(@NonNull V v) Called when this object is visited.intReturns a (not necessarily fixed) hash code for this object.booleanequivTo(Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.intgetIndex()Returns the num of this ParameterRef.@NonNull TypegetType()Returns the type of this ParameterRef.getUses()Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference.toString()Converts the given ParameterRef into a String i.e.voidtoString(@NonNull StmtPrinter up) @NonNull JParameterRefwithNumber(int number) @NonNull JParameterRefwithParamType(@NonNull Type paramType)
-
Constructor Details
-
JParameterRef
Constructs a ParameterRef object of the specified type, representing the specified parameter number.
-
-
Method Details
-
equivTo
Description copied from interface:EquivToReturns true if this object is equivalent to o according to the given comparator. -
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. The contract is defined inJimpleComparator.- Specified by:
equivHashCodein interfaceEquivTo
-
toString
Converts the given ParameterRef into a String i.e.@parameter0: .int. -
toString
-
getIndex
public int getIndex()Returns the num of this ParameterRef. -
getUses
Description copied from interface:ValueReturns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference. -
getType
Returns the type of this ParameterRef. -
accept
Description copied from interface:AcceptorCalled when this object is visited.- Specified by:
acceptin interfaceAcceptor<RefVisitor>
-
withParamType
-
withNumber
-