org.apache.commons.attributes
Class AttributeIndex.ConstructorParameter

java.lang.Object
  extended by org.apache.commons.attributes.AttributeIndex.ConstructorParameter
Enclosing class:
AttributeIndex

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

A constructor 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  java.lang.reflect.Constructor ctor
           
private  int index
           
 
Constructor Summary
AttributeIndex.ConstructorParameter(java.lang.reflect.Constructor ctor, int index)
          Constructs a new ConstructorParameter.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two ConstructorParameters for equality.
 java.lang.reflect.Constructor getConstructor()
          Get the constructor this parameter is defined in.
 int getIndex()
          Get the index of this parameter in the parameter list of the constructor.
 int hashCode()
          Computes the hashCode.
 java.lang.String toString()
          Converts this constructor parameter into a human-readable string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ctor

private final java.lang.reflect.Constructor ctor

index

private final int index
Constructor Detail

AttributeIndex.ConstructorParameter

public AttributeIndex.ConstructorParameter(java.lang.reflect.Constructor ctor,
                                           int index)
Constructs a new ConstructorParameter.

Since:
2.1
Method Detail

getConstructor

public java.lang.reflect.Constructor getConstructor()
Get the constructor this parameter is defined in.

Since:
2.1

getIndex

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

Since:
2.1

equals

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

Overrides:
equals in class java.lang.Object
Since:
2.1

hashCode

public int hashCode()
Computes the hashCode.

Overrides:
hashCode in class java.lang.Object
Since:
2.1

toString

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

Overrides:
toString in class java.lang.Object
Since:
2.1