public class JavaTypeDeclaration extends java.lang.Object implements ITypeDeclaration
ITypeDeclaration
that is wrapping the representation
of the declaration description of a type.Constructor and Description |
---|
JavaTypeDeclaration(ITypeRepository typeRepository,
IType type,
java.lang.Object genericType,
boolean array)
Creates a new
JavaTypeDeclaration . |
Modifier and Type | Method and Description |
---|---|
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.
|
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() |
public JavaTypeDeclaration(ITypeRepository typeRepository, IType type, java.lang.Object genericType, boolean array)
JavaTypeDeclaration
.typeRepository
- The repository of ITypes
type
- 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 arraypublic int getDimensionality()
ITypeDeclaration.isArray()
is true
) or
0 if the type is not an array.getDimensionality
in interface ITypeDeclaration
IType
is an array; otherwise 0public IType getType()
getType
in interface ITypeDeclaration
public ITypeDeclaration[] getTypeParameters()
ITypeDeclarations
that represent the variables declared
by the generic declaration represented by this ITypeDeclaration
.getTypeParameters
in interface ITypeDeclaration
ITypeDeclarations
public boolean isArray()
isArray
in interface ITypeDeclaration
true
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