org.apache.commons.attributes

Class AttributeIndex.MethodParameter

Enclosing Class:
AttributeIndex

public static class AttributeIndex.MethodParameter
extends java.lang.Object

Reference to a method parameter. A method parameter is defined by the Method object it is defined in, and the index of the parameter in the method's parameter list.
Since:
2.1

Field Summary

private int
index
private Method
method

Constructor Summary

MethodParameter(Method method, int index)
Constructs a new MethodParameter.

Method Summary

boolean
equals(Object o)
Compares two MethodParameters for equality.
int
getIndex()
Get the index of this parameter in the parameter list of the method.
Method
getMethod()
Get the method this parameter is defined in.
int
hashCode()
Computes the hashCode.
String
toString()
Converts this method parameter into a human-readable string.

Field Details

index

private final int index

method

private final Method method

Constructor Details

MethodParameter

public MethodParameter(Method method,
                       int index)
Constructs a new MethodParameter.
Since:
2.1

Method Details

equals

public boolean equals(Object o)
Compares two MethodParameters for equality. They must point to the same method and have the same index.
Since:
2.1

getIndex

public int getIndex()
Get the index of this parameter in the parameter list of the method.
Since:
2.1

getMethod

public Method getMethod()
Get the method this parameter is defined in.
Since:
2.1

hashCode

public int hashCode()
Computes the hashCode.
Since:
2.1

toString

public String toString()
Converts this method parameter into a human-readable string.
Since:
2.1