Top Description Methods
org.eclipse.persistence.jpa.jpql.tools.spi

public Interface ITypeDeclaration

extends IExternalForm

The external representation of a type declaration, which is used to give more information about the type, i.e. if it's an array and if it has parameter types.

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.

Author
Pascal Filion
Since
2.3
Version
2.3

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The array dimensionality if the IType is an array; otherwise 0
getDimensionality
()

Returns the dimensionality of the type if (isArray() is true) or 0 if the type is not an array.

public IType

Returns:

The type defined for the Java member
getType
()

Returns the type defined for the Java member.

public ITypeDeclaration[]

Returns:

The array over the ITypeDeclarations
getTypeParameters
()

Returns the ITypeDeclarations that represent the variables declared by the generic declaration represented by this ITypeDeclaration.

public boolean

Returns:

true if this type is an array; false otherwise
isArray
()

Determines whether this type represents an array or not.

Method Detail

getDimensionalityback to summary
public int getDimensionality()

Returns the dimensionality of the type if (isArray() is true) or 0 if the type is not an array.

Returns:int

The array dimensionality if the IType is an array; otherwise 0

getTypeback to summary
public IType getType()

Returns the type defined for the Java member.

Returns:IType

The type defined for the Java member

getTypeParametersback to summary
public ITypeDeclaration[] getTypeParameters()

Returns the ITypeDeclarations that represent the variables declared by the generic declaration represented by this ITypeDeclaration.

Returns:ITypeDeclaration[]

The array over the ITypeDeclarations

isArrayback to summary
public boolean isArray()

Determines whether this type represents an array or not.

Returns:boolean

true if this type is an array; false otherwise