|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.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 ITypestype - 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 array| Method 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 ITypeDeclarationIType is an array; otherwise 0public IType getType()
getType in interface ITypeDeclarationprotected 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 ITypeDeclarationITypeDeclarationspublic boolean isArray()
isArray in interface ITypeDeclarationtrue if this type is an array; false otherwisepublic java.lang.String toString()
toString in class java.lang.Object
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||