|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.tools.spi.java.JavaTypeDeclaration
public class JavaTypeDeclaration
The concrete implementation of ITypeDeclaration
that is wrapping the representation
of the declaration description of a type.
IMapping
,
IType
Constructor Summary | |
---|---|
JavaTypeDeclaration(ITypeRepository typeRepository,
IType type,
java.lang.Object genericType,
boolean array)
Creates a new JavaTypeDeclaration . |
Method Summary | |
---|---|
protected java.lang.String |
buildArrayTypeName(java.lang.String arrayTypeName)
|
protected ITypeDeclaration[] |
buildParameterTypes()
|
protected JavaTypeDeclaration |
buildTypeDeclaration(java.lang.Class<?> javaType)
|
protected JavaTypeDeclaration |
buildTypeDeclaration(java.lang.Object genericType)
|
protected java.lang.String |
elementType(java.lang.String typeName)
|
int |
getDimensionality()
Returns the dimensionality of the type if ( ITypeDeclaration.isArray() is true ) or
0 if the type is not an array. |
IType |
getType()
Returns the type defined for the Java member. |
protected IType |
getType(java.lang.Class<?> type)
|
ITypeDeclaration[] |
getTypeParameters()
Returns the ITypeDeclarations that represent the variables declared
by the generic declaration represented by this ITypeDeclaration . |
boolean |
isArray()
Determines whether this type represents an array or not. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaTypeDeclaration(ITypeRepository typeRepository, IType type, java.lang.Object genericType, boolean array)
JavaTypeDeclaration
.
typeRepository
- The repository of ITypes
type
- The external form of the Java typegenericType
- The actual type that contains the generics, if any is presentarray
- Determines whether the type declaration represents an arrayMethod Detail |
---|
protected java.lang.String buildArrayTypeName(java.lang.String arrayTypeName)
protected ITypeDeclaration[] buildParameterTypes()
protected JavaTypeDeclaration buildTypeDeclaration(java.lang.Class<?> javaType)
protected JavaTypeDeclaration buildTypeDeclaration(java.lang.Object genericType)
protected java.lang.String elementType(java.lang.String typeName)
public int getDimensionality()
ITypeDeclaration.isArray()
is true
) or
0 if the type is not an array.
getDimensionality
in interface ITypeDeclaration
IType
is an array; otherwise 0public IType getType()
getType
in interface ITypeDeclaration
protected IType getType(java.lang.Class<?> type)
public ITypeDeclaration[] getTypeParameters()
ITypeDeclarations
that represent the variables declared
by the generic declaration represented by this ITypeDeclaration
.
getTypeParameters
in interface ITypeDeclaration
ITypeDeclarations
public boolean isArray()
isArray
in interface ITypeDeclaration
true
if this type is an array; false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
|
EclipseLink 2.5.0, build 'v20130425-368d603' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |