org.apache.commons.attributes
Class AttributeIndex.MethodParameter

java.lang.Object
  extended byorg.apache.commons.attributes.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.


Field Summary
private  int index
           
private  java.lang.reflect.Method method
           
 
Constructor Summary
AttributeIndex.MethodParameter(java.lang.reflect.Method method, int index)
          Constructs a new MethodParameter.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two MethodParameters for equality.
 int getIndex()
          Get the index of this parameter in the parameter list of the method.
 java.lang.reflect.Method getMethod()
          Get the method this parameter is defined in.
 int hashCode()
          Computes the hashCode.
 java.lang.String toString()
          Converts this method parameter into a human-readable string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

method

private final java.lang.reflect.Method method

index

private final int index
Constructor Detail

AttributeIndex.MethodParameter

public AttributeIndex.MethodParameter(java.lang.reflect.Method method,
                                      int index)
Constructs a new MethodParameter.

Method Detail

getMethod

public java.lang.reflect.Method getMethod()
Get the method this parameter is defined in.


getIndex

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


equals

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


hashCode

public int hashCode()
Computes the hashCode.


toString

public java.lang.String toString()
Converts this method parameter into a human-readable string.