org.eclipse.persistence.jpa.jpql.spi.java
Class JavaConstructor
java.lang.Object
org.eclipse.persistence.jpa.jpql.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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaConstructor
public JavaConstructor(JavaType type,
java.lang.reflect.Constructor<?> constructor)
- Creates a new
JavaConstructor
.
- Parameters:
type
- The declaring type of this constructorconstructor
- The actual Java constructor
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