ReflWrap
Class ConstructInfo

java.lang.Object
  extended by ReflWrap.ConstructInfo

public class ConstructInfo
extends java.lang.Object

This class wraps all information about a constructor


Field Summary
private  java.lang.reflect.Constructor c
          Underlying Constructor object
private  java.lang.String name
          Name
private  java.lang.String[] params
          String representation of the parameter types
 
Constructor Summary
ConstructInfo(java.lang.reflect.Constructor construct)
          Generate from an existing constructor
 
Method Summary
 java.lang.reflect.Constructor c()
          Retrieve the underlying Constructor object
 java.lang.annotation.Annotation[] getParamAnot(int i)
          Get the Annotations for a certain parameter
 java.lang.String modifiersToString()
          Convert all modifiers to a pretty String
 java.lang.String name()
          Retrieve the constructor's name
 java.lang.String[] params()
          Retrieve the parameters this constructor takes
 java.lang.String paramsToString()
          Convert the parameters to a pretty String
 java.lang.String toString()
          Return a String representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

c

private java.lang.reflect.Constructor c
Underlying Constructor object


name

private java.lang.String name
Name


params

private java.lang.String[] params
String representation of the parameter types

Constructor Detail

ConstructInfo

public ConstructInfo(java.lang.reflect.Constructor construct)
Generate from an existing constructor

Parameters:
construct - Constructor
Method Detail

c

public java.lang.reflect.Constructor c()
Retrieve the underlying Constructor object

Returns:
Constructor object

name

public java.lang.String name()
Retrieve the constructor's name

Returns:
Name

params

public java.lang.String[] params()
Retrieve the parameters this constructor takes

Returns:
Array of parameter types

toString

public java.lang.String toString()
Return a String representation of this object

Overrides:
toString in class java.lang.Object
Returns:
String

paramsToString

public java.lang.String paramsToString()
Convert the parameters to a pretty String

Returns:
String

modifiersToString

public java.lang.String modifiersToString()
Convert all modifiers to a pretty String

Returns:
String

getParamAnot

public java.lang.annotation.Annotation[] getParamAnot(int i)
Get the Annotations for a certain parameter

Parameters:
i - Index of the requested parameter
Returns:
Array of Annotations