EclipseLink 2.5.0, build 'v20130425-368d603' API Reference

org.eclipse.persistence.jpa.jpql.tools.spi.java
Class JavaConstructor

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.tools.spi.java.JavaConstructor
All Implemented Interfaces:
IConstructor

public class JavaConstructor
extends java.lang.Object
implements IConstructor

The concrete implementation of IConstructor that is wrapping a Java constructor.

Version:
2.4
Author:
Pascal Filion
Since:
2.3

Constructor Summary
JavaConstructor(JavaType type, java.lang.reflect.Constructor<?> constructor)
          Creates a new JavaConstructor.
 
Method Summary
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()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaConstructor

public JavaConstructor(JavaType type,
                       java.lang.reflect.Constructor<?> constructor)
Creates a new JavaConstructor.

Parameters:
type - The declaring type of this constructor
constructor - The actual Java constructor
Method Detail

buildParameterTypes

protected ITypeDeclaration[] buildParameterTypes()

buildTypeDeclaration

protected ITypeDeclaration buildTypeDeclaration(java.lang.Class<?> javaType,
                                                java.lang.reflect.Type genericType)

getParameterTypes

public ITypeDeclaration[] getParameterTypes()
Returns the list of ITypeDeclaration representing the parameter types. If this is the default constructor, then an empty array should be returned.

Specified by:
getParameterTypes in interface IConstructor
Returns:
The list of parameter types or an empty list

getTypeRepository

protected ITypeRepository getTypeRepository()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.5.0, build 'v20130425-368d603' API Reference