public class TypeImpl extends Object implements Type, Comparable<TypeImpl>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TypeImpl t)
Note: you can only compare types from the same type system.
|
Vector<Feature> |
getAppropriateFeatures()
Deprecated.
|
int |
getCode()
Return the internal integer code for this type.
|
Type |
getComponentType()
For array types, returns the component type of the array type.
|
Feature |
getFeature(String featureName)
Deprecated.
|
Feature |
getFeatureByBaseName(String featureName)
Retrieve a feature for this type.
|
List<Feature> |
getFeatures()
guaranteed to be non-null, but might be empty list
|
String |
getName()
Get the name of the type.
|
int |
getNumberOfFeatures()
Get the number of features for which this type defines the range.
|
String |
getShortName()
Get the unqualified, short name of this type.
|
Type |
getSuperType()
Get the super type.
|
TypeSystem |
getTypeSystem()
Get the type hierarchy that this type belongs to.
|
boolean |
isAnnotationType()
Check if this is an annotation type.
|
boolean |
isArray()
Check if the type is an array type.
|
boolean |
isFeatureFinal()
Check if type is feature final, i.e., if no more new features may be defined for it.
|
boolean |
isInheritanceFinal()
Check if type is inheritance final, i.e., if new types can be derived from it.
|
boolean |
isPrimitive()
Check if the type is one of the primitive types.
|
String |
toString() |
public String getName()
public Type getSuperType()
@Deprecated public Vector<Feature> getAppropriateFeatures()
getAppropriateFeatures in interface Typepublic int getNumberOfFeatures()
getNumberOfFeatures in interface Typepublic boolean isAnnotationType()
true, if this is an annotation type; false,
else.public TypeSystem getTypeSystem()
public int getCode()
>=0.public int compareTo(TypeImpl t)
compareTo in interface Comparable<TypeImpl>public Feature getFeatureByBaseName(String featureName)
TypegetFeatureByBaseName in interface TypefeatureName - The short, unqualified name of the feature.null, else.Type.getFeatureByBaseName(String)public String getShortName()
TypegetShortName in interface TypeType.getShortName()public boolean isPrimitive()
TypeisPrimitive in interface Typetrue iff type is a primitive type.Type.isPrimitive()public boolean isFeatureFinal()
TypeisFeatureFinal in interface TypeType.isFeatureFinal()public boolean isInheritanceFinal()
TypeisInheritanceFinal in interface TypeType.isInheritanceFinal()@Deprecated public Feature getFeature(String featureName)
public List<Feature> getFeatures()
getFeatures in interface Typepublic boolean isArray()
Typepublic Type getComponentType()
Typenull.getComponentType in interface TypeCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.