org.apache.commons.attributes
Class AttributeIndex.ConstructorParameter

java.lang.Object
  |
  +--org.apache.commons.attributes.AttributeIndex.ConstructorParameter
Enclosing class:
AttributeIndex

public static class AttributeIndex.ConstructorParameter
extends 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.


Constructor Summary
AttributeIndex.ConstructorParameter(Constructor ctor, int index)
          Constructs a new ConstructorParameter.
 
Method Summary
 boolean equals(Object o)
          Compares two ConstructorParameters for equality.
 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.
 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
 

Constructor Detail

AttributeIndex.ConstructorParameter

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

Method Detail

getConstructor

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


getIndex

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


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
Computes the hashCode.

Overrides:
hashCode in class Object

toString

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

Overrides:
toString in class Object


Copyright © The Apache Software Foundation. All Rights Reserved.