Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.jpql.spi
Class JpaType

java.lang.Object
  extended by org.eclipse.jpt.jpa.core.jpql.spi.JpaType
All Implemented Interfaces:
IJpaType

public class JpaType
extends Object
implements IJpaType

The concrete implementation of IType that is wrapping the design-time representation of 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.

Since:
3.0

Constructor Summary
JpaType(JpaTypeRepository typeRepository, IType type)
          Creates a new JpaType.
 
Method Summary
protected  CompilationUnit buildCompilationUnit()
           
protected  Collection<IConstructor> buildConstructors()
           
protected  String[] buildEnumConstants()
           
protected  ITypeBinding buildTypeBinding()
           
protected  ITypeDeclaration buildTypeDeclaration()
           
 Iterable<IConstructor> constructors()
          
 boolean equals(Object object)
          
 boolean equals(org.eclipse.persistence.jpa.jpql.tools.spi.IType type)
          
 String[] getEnumConstants()
          
 String getName()
          
protected  ASTNode getParent(ASTNode node, Class<? extends ASTNode> parentClass)
           
protected  IType getType()
          Returns the encapsulated Type, which is the actual type.
protected  ITypeBinding getTypeBinding()
           
 ITypeDeclaration getTypeDeclaration()
          
protected  JpaTypeRepository getTypeRepository()
          Returns the repository that gives access to the application's classes.
 boolean hasAnnotation(Class<? extends Annotation> annotationType)
          
 int hashCode()
          
 boolean isAssignableTo(org.eclipse.persistence.jpa.jpql.tools.spi.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

JpaType

public JpaType(JpaTypeRepository typeRepository,
               IType type)
Creates a new JpaType.

Parameters:
typeRepository - The external form of a type repository
type - The design-time representation of a Java type
Method Detail

buildCompilationUnit

protected CompilationUnit buildCompilationUnit()

buildConstructors

protected Collection<IConstructor> buildConstructors()

buildEnumConstants

protected String[] buildEnumConstants()

buildTypeBinding

protected ITypeBinding buildTypeBinding()

buildTypeDeclaration

protected ITypeDeclaration buildTypeDeclaration()

constructors

public Iterable<IConstructor> constructors()


equals

public boolean equals(Object object)

Overrides:
equals in class Object

equals

public boolean equals(org.eclipse.persistence.jpa.jpql.tools.spi.IType type)

Overrides:
equals in class Object

getEnumConstants

public String[] getEnumConstants()


getName

public String getName()


getParent

protected ASTNode getParent(ASTNode node,
                            Class<? extends ASTNode> parentClass)

getType

protected IType getType()
Returns the encapsulated Type, which is the actual type.

Returns:
The design-time representation of a Java type

getTypeBinding

protected ITypeBinding getTypeBinding()

getTypeDeclaration

public ITypeDeclaration getTypeDeclaration()


getTypeRepository

protected JpaTypeRepository getTypeRepository()
Returns the repository that gives access to the application's classes.

Returns:
The external form of the type repository

hasAnnotation

public boolean hasAnnotation(Class<? extends Annotation> annotationType)


hashCode

public int hashCode()

Overrides:
hashCode in class Object

isAssignableTo

public boolean isAssignableTo(org.eclipse.persistence.jpa.jpql.tools.spi.IType otherType)


isEnum

public boolean isEnum()


isResolvable

public boolean isResolvable()


setTypeDeclaration

public void setTypeDeclaration(JpaTypeDeclaration typeDeclaration)
Manually sets the declaration of this IType, which gives the information about type parameters, dimensionality, etc.

Specified by:
setTypeDeclaration in interface IJpaType
Parameters:
typeDeclaration - The external form of the type declaration

toString

public String toString()

Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.