Dali Provisional API
Release 3.2

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

java.lang.Object
  extended by org.eclipse.jpt.jpa.core.jpql.spi.JavaTypeDeclaration

public class JavaTypeDeclaration
extends Object

The concrete implementation of ITypeDeclaration that is wrapping the representation of the declaration description of a 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
See Also:
IMapping, IType

Constructor Summary
JavaTypeDeclaration(ITypeRepository typeRepository, IType type, Object genericType, boolean array)
          Creates a new JavaTypeDeclaration.
 
Method Summary
protected  String buildArrayTypeName(String arrayTypeName)
           
protected  ITypeDeclaration[] buildParameterTypes()
           
protected  JavaTypeDeclaration buildTypeDeclaration(Class<?> javaType)
           
protected  JavaTypeDeclaration buildTypeDeclaration(Object genericType)
           
protected  String elementType(String typeName)
           
 int getDimensionality()
          
 IType getType()
          
protected  IType getType(Class<?> type)
           
 ITypeDeclaration[] getTypeParameters()
          
 boolean isArray()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaTypeDeclaration

public JavaTypeDeclaration(ITypeRepository typeRepository,
                           IType type,
                           Object genericType,
                           boolean array)
Creates a new JavaTypeDeclaration.

Parameters:
typeRepository - The repository of ITypes
type - The external form of the Java type
genericType - The actual type that contains the generics, if any is present
array - Determines whether the type declaration represents an array
Method Detail

buildArrayTypeName

protected String buildArrayTypeName(String arrayTypeName)

buildParameterTypes

protected ITypeDeclaration[] buildParameterTypes()

buildTypeDeclaration

protected JavaTypeDeclaration buildTypeDeclaration(Class<?> javaType)

buildTypeDeclaration

protected JavaTypeDeclaration buildTypeDeclaration(Object genericType)

elementType

protected String elementType(String typeName)

getDimensionality

public int getDimensionality()


getType

public IType getType()


getType

protected IType getType(Class<?> type)

getTypeParameters

public ITypeDeclaration[] getTypeParameters()


isArray

public boolean isArray()


toString

public String toString()

Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.