public class ParameterRef extends java.lang.Object implements IdentityRef
ParameterRef
objects are used by Body
objects to refer to the parameter slots on method entry. this := @parameter0;
Constructor and Description |
---|
ParameterRef(Type paramType,
int number)
Constructs a ParameterRef object of the specified type, representing the specified parameter number.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Switch sw)
Used with RefSwitch.
|
java.lang.Object |
clone()
Create a new ParameterRef object with the same paramType and number.
|
int |
equivHashCode()
Returns a (not necessarily fixed) hash code for this object.
|
boolean |
equivTo(java.lang.Object o)
Returns true if this object is equivalent to o.
|
int |
getIndex()
Returns the index of this ParameterRef.
|
Type |
getType()
Returns the type of this ParameterRef.
|
java.util.List<ValueBox> |
getUseBoxes()
Returns a List of boxes corresponding to Values
which are used by (ie contained within) this Value.
|
void |
setIndex(int index)
Sets the index of this ParameterRef.
|
java.lang.String |
toString()
Converts the given ParameterRef into a String i.e.
|
void |
toString(UnitPrinter up) |
public ParameterRef(Type paramType, int number)
public boolean equivTo(java.lang.Object o)
EquivTo
public int equivHashCode()
EquivTo
equivHashCode
in interface EquivTo
public java.lang.Object clone()
public java.lang.String toString()
@parameter0: .int
.toString
in class java.lang.Object
public void toString(UnitPrinter up)
public int getIndex()
public void setIndex(int index)
public final java.util.List<ValueBox> getUseBoxes()
Value
getUseBoxes
in interface Value
public Type getType()
public void apply(Switch sw)
apply
in interface Switchable