public class MethodParameterReference extends QualifiedReference
method.QualifiedReference.TypeJVMS_COMPONENT_JOINER, type| Constructor and Description |
|---|
MethodParameterReference(MethodReference parentMethod,
int index)
Constructs a new reference to a method parameter.
|
| Modifier and Type | Method and Description |
|---|---|
StringJoiner |
buildToString() |
boolean |
equals(Object obj) |
int |
getParameterIndex()
Gets the index of this parameter (0-indexed).
|
MethodReference |
getParentMethod()
Gets the method specifying this parameter.
|
int |
hashCode() |
String |
toJvmsIdentifier()
Returns a JVMS-like identifier string corresponding to this reference.
|
getType, toStringpublic MethodParameterReference(MethodReference parentMethod, int index) throws IllegalArgumentException
parentMethod - The method specifying the parameterindex - The index of the parameter (0-indexed)IllegalArgumentException - If the parameter index is out-of-boundspublic MethodReference getParentMethod()
public int getParameterIndex()
public String toJvmsIdentifier()
QualifiedReferencetoJvmsIdentifier in class QualifiedReferencepublic StringJoiner buildToString()
buildToString in class QualifiedReferencepublic boolean equals(Object obj)
equals in class QualifiedReferencepublic int hashCode()
hashCode in class QualifiedReference