org.apache.commons.attributes
Class AttributeIndex.ConstructorParameter
java.lang.Object
org.apache.commons.attributes.AttributeIndex.ConstructorParameter
- 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.
boolean | equals(Object o) - Compares two
ConstructorParameter s 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.
|
ctor
private final Constructor ctor
index
private final int index
ConstructorParameter
public ConstructorParameter(Constructor ctor,
int index)
Constructs a new ConstructorParameter.
equals
public boolean equals(Object o)
Compares two ConstructorParameter
s for equality.
They must point to the same constructor and have the same index.
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.
hashCode
public int hashCode()
Computes the hashCode.
toString
public String toString()
Converts this constructor parameter into a human-readable string.