public class JavaConstructor extends java.lang.Object implements IConstructor
IConstructor that is wrapping a Java constructor.| Constructor and Description |
|---|
JavaConstructor(JavaType type,
java.lang.reflect.Constructor<?> constructor)
Creates a new
JavaConstructor. |
| Modifier and Type | Method and Description |
|---|---|
protected ITypeDeclaration[] |
buildParameterTypes() |
protected ITypeDeclaration |
buildTypeDeclaration(java.lang.Class<?> javaType,
java.lang.reflect.Type genericType) |
ITypeDeclaration[] |
getParameterTypes()
Returns the list of
ITypeDeclaration representing the parameter types. |
protected ITypeRepository |
getTypeRepository() |
java.lang.String |
toString() |
public JavaConstructor(JavaType type, java.lang.reflect.Constructor<?> constructor)
JavaConstructor.type - The declaring type of this constructorconstructor - The actual Java constructorprotected ITypeDeclaration[] buildParameterTypes()
protected ITypeDeclaration buildTypeDeclaration(java.lang.Class<?> javaType, java.lang.reflect.Type genericType)
public ITypeDeclaration[] getParameterTypes()
ITypeDeclaration representing the parameter types. If this is the
default constructor, then an empty array should be returned.getParameterTypes in interface IConstructorprotected ITypeRepository getTypeRepository()
public java.lang.String toString()
toString in class java.lang.Object