|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jpt.jpa.core.jpql.spi.JavaType
public class JavaType
The concrete implementation of IType that is wrapping a Java type.
Provisional API: This interface is part of an interim API that is still under development and
expected to change significantly before reaching stability. It is available at this early stage
to solicit feedback from pioneering adopters on the understanding that any code that uses this
API will almost certainly be broken (repeatedly) as the API evolves.
| Constructor Summary | |
|---|---|
JavaType(JpaTypeRepository typeRepository,
Class<?> type)
Creates a new JavaType. |
|
| Method Summary | |
|---|---|
protected IConstructor |
buildConstructor(Constructor<?> constructor)
|
protected Collection<IConstructor> |
buildConstructors()
|
protected String[] |
buildEnumConstants()
|
Iterable<IConstructor> |
constructors()
|
boolean |
equals(IType type)
|
String[] |
getEnumConstants()
|
String |
getName()
|
protected Class<?> |
getType()
Returns the encapsulated Class, which is the actual type. |
ITypeDeclaration |
getTypeDeclaration()
|
protected JpaTypeRepository |
getTypeRepository()
Returns the type repository for the application. |
boolean |
hasAnnotation(Class<? extends Annotation> annotationType)
|
int |
hashCode()
|
boolean |
isAssignableTo(IType otherType)
|
boolean |
isEnum()
|
boolean |
isResolvable()
|
void |
setTypeDeclaration(JpaTypeDeclaration typeDeclaration)
Manually sets the declaration of this IType, which gives the information about type
parameters, dimensionality, etc. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaType(JpaTypeRepository typeRepository,
Class<?> type)
JavaType.
typeRepository - The external form of a type repositorytype - The actual Java type wrapped by this class| Method Detail |
|---|
protected IConstructor buildConstructor(Constructor<?> constructor)
protected Collection<IConstructor> buildConstructors()
protected String[] buildEnumConstants()
public Iterable<IConstructor> constructors()
public boolean equals(IType type)
equals in class Objectpublic String[] getEnumConstants()
public String getName()
protected Class<?> getType()
Class, which is the actual type.
null is returned; then the class could not be resolvedpublic ITypeDeclaration getTypeDeclaration()
protected JpaTypeRepository getTypeRepository()
ITypespublic boolean hasAnnotation(Class<? extends Annotation> annotationType)
public int hashCode()
hashCode in class Objectpublic boolean isAssignableTo(IType otherType)
public boolean isEnum()
public boolean isResolvable()
public void setTypeDeclaration(JpaTypeDeclaration typeDeclaration)
IType, which gives the information about type
parameters, dimensionality, etc.
setTypeDeclaration in interface IJpaTypetypeDeclaration - The external form of the type declarationpublic String toString()
toString in class Object
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||