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 |
|---|---|
protected java.lang.String |
buildArrayTypeName(java.lang.String arrayTypeName) |
protected ITypeDeclaration[] |
buildParameterTypes() |
protected JavaTypeDeclaration |
buildTypeDeclaration(java.lang.Class<?> javaType) |
protected JavaTypeDeclaration |
buildTypeDeclaration(java.lang.Object genericType) |
protected java.lang.String |
elementType(java.lang.String typeName) |
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.
|
protected IType |
getType(java.lang.Class<?> type) |
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 ITypestype - 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 arrayprotected java.lang.String buildArrayTypeName(java.lang.String arrayTypeName)
protected ITypeDeclaration[] buildParameterTypes()
protected JavaTypeDeclaration buildTypeDeclaration(java.lang.Class<?> javaType)
protected JavaTypeDeclaration buildTypeDeclaration(java.lang.Object genericType)
protected java.lang.String elementType(java.lang.String typeName)
public int getDimensionality()
ITypeDeclaration.isArray() is true) or
0 if the type is not an array.getDimensionality in interface ITypeDeclarationIType is an array; otherwise 0public IType getType()
getType in interface ITypeDeclarationprotected IType getType(java.lang.Class<?> type)
public ITypeDeclaration[] getTypeParameters()
ITypeDeclarations that represent the variables declared
by the generic declaration represented by this ITypeDeclaration.getTypeParameters in interface ITypeDeclarationITypeDeclarationspublic boolean isArray()
isArray in interface ITypeDeclarationtrue if this type is an array; false otherwisepublic java.lang.String toString()
toString in class java.lang.Object