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 |
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)
EquivTopublic int equivHashCode()
EquivToequivHashCode in interface EquivTopublic java.lang.Object clone()
public java.lang.String toString()
@parameter0: .int.toString in class java.lang.Objectpublic void toString(UnitPrinter up)
public int getIndex()
public void setIndex(int index)
public java.util.List getUseBoxes()
ValuegetUseBoxes in interface Valuepublic Type getType()
public void apply(Switch sw)
apply in interface SwitchableCopyright © 2012-2019 RoboVM AB. All Rights Reserved.