org.apache.commons.attributes

Class 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 Constructor
ctor
private int
index

Constructor Summary

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.

Field Details

ctor

private final Constructor ctor

index

private final int index

Constructor Details

ConstructorParameter

public ConstructorParameter(Constructor ctor,
                            int index)
Constructs a new ConstructorParameter.
Since:
2.1

Method Details

equals

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

getConstructor

public 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

hashCode

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

toString

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