public class MethodReference extends MemberReference<MethodSignature>
class.QualifiedReference.TypeowningClass, signatureJVMS_COMPONENT_JOINER, type| Constructor and Description |
|---|
MethodReference(ClassReference owningClass,
MethodSignature signature)
Constructs a new reference to a class method.
|
| Modifier and Type | Method and Description |
|---|---|
MethodParameterReference |
getParameter(int index)
Returns a reference to the parameter of this method with the given index.
|
buildToString, equals, getOwningClass, getSignature, hashCode, toJvmsIdentifiergetType, toStringpublic MethodReference(ClassReference owningClass, MethodSignature signature)
owningClass - The class containing the methodsignature - The signature of the methodpublic MethodParameterReference getParameter(int index)
index - The index of the parameterIllegalArgumentException - If the parameter index is out-of-bounds