public class ObjectType extends Type
| Modifier and Type | Field and Description |
|---|---|
protected ObjectType |
baseClazzType |
protected List<Type> |
genericTypeArguments |
protected boolean |
initializedType |
protected List<Type> |
interfaceTypes |
protected Set<Type> |
superTypesWithAscendants |
clazzUsingType, qualifiedProtoTypicalTypeNameMAX_RECURSIVE_LEVEL, NO_DETAILS_LEVEL| Modifier | Constructor and Description |
|---|---|
|
ObjectType(BasicClazz optClazzUsingType,
String qualifiedProtoTypicalTypeName) |
protected |
ObjectType(BasicClazz clazzUsingType,
String qualifiedProtoTypicalTypeName,
ObjectType baseClazz,
List<Type> superInterfaces,
Set<Type> superTypesWithAncestors,
List<Type> genericTypeArguments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeMoreDetailed() |
Type |
copy(BasicClazz clazzUsingType) |
ObjectType |
getBaseClazzType() |
List<Constructor> |
getConstructors() |
List<Type> |
getGenericTypeArguments() |
List<Type> |
getInterfaceTypes() |
List<Member> |
getMembers() |
List<Method> |
getMethods() |
String |
getPrototypicalName()
Returns a simple type name without package unless nedded.
|
Set<Type> |
getSuperTypesWithAscendants() |
TypeCategory |
getTypeCategory()
Returns this overall category (kind) of type this type is.
|
boolean |
hasAnyMembers() |
boolean |
hasArrayMembers() |
boolean |
hasCollectionMembers() |
boolean |
hasPrimitiveMembers() |
boolean |
initialized() |
void |
initType(ObjectType baseClazzType,
List<Type> interfaceTypes,
Set<Type> superTypesWithAncestors,
List<Type> genericTypeArguments)
Nb.
|
boolean |
isInImportScope()
Checks if the type is in scope of the class being generated taking imports and default packages etc.
|
boolean |
isObject() |
boolean |
isOfQualifiedType(String qualifiedClassOrInterfaceName)
Returns if type is equal to or implements/inherites from specified qualified class/interface.
|
boolean |
isRootObject()
Checks if the type is java.lang.Object
|
void |
print(IndentedPrintWriter writer,
int detailLevel)
Helper method for printing out the model nicely without getting into problems with its circular references.
|
equals, getClazz, getConfiguration, getDetailLevel, getName, getPackageName, getPrototypicalQualifiedName, getQualifiedName, getSimpleName, getWrapperName, hashCode, hasInstanceMember, hasInstanceMethod, hasStaticMember, hasStaticMethod, isArray, isCollection, isExactQualifiedType, isExactType, isExactType, isMultiDimensionalArray, isOfType, isOfType, isPrimitive, isPrimitiveBoolean, isPrimitiveByte, isPrimitiveChar, isPrimitiveDouble, isPrimitiveFloat, isPrimitiveInt, isPrimitiveLong, isPrimitiveShort, isThisSuperType, isThisType, isVoidprintExtraBottom, printExtraTop, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetGeneratedClazz, getVariablesPrefix, isInDefaultPackageprotected ObjectType baseClazzType
protected boolean initializedType
public ObjectType(BasicClazz optClazzUsingType, String qualifiedProtoTypicalTypeName)
protected ObjectType(BasicClazz clazzUsingType, String qualifiedProtoTypicalTypeName, ObjectType baseClazz, List<Type> superInterfaces, Set<Type> superTypesWithAncestors, List<Type> genericTypeArguments)
public Type copy(BasicClazz clazzUsingType)
public void initType(ObjectType baseClazzType, List<Type> interfaceTypes, Set<Type> superTypesWithAncestors, List<Type> genericTypeArguments)
baseClazzType - Base class of this type if any (NoType if no base class exist).interfaceTypes - Direct super-interfaces of this type.superTypesWithAncestors - All ancestor interfaces of this type.genericTypeArguments - Generic arguments of this type.public boolean initialized()
public boolean isInImportScope()
TypeisInImportScope in class Typepublic boolean canBeMoreDetailed()
canBeMoreDetailed in class Typepublic ObjectType getBaseClazzType()
public boolean hasPrimitiveMembers()
public boolean hasArrayMembers()
public boolean hasCollectionMembers()
public boolean hasAnyMembers()
public List<Constructor> getConstructors()
public String getPrototypicalName()
TypegetPrototypicalName in class Typepublic boolean isRootObject()
TypeisRootObject in class Typepublic TypeCategory getTypeCategory()
TypegetTypeCategory in class Typepublic boolean isOfQualifiedType(String qualifiedClassOrInterfaceName)
TypeisOfQualifiedType in class TypequalifiedClassOrInterfaceName - The qualified name of the class/interface.public void print(IndentedPrintWriter writer, int detailLevel)
Model
Version 2.0.0 generated on 2014-11-22 at 09:45 - (C) 41concepts Aps. Refer to project homepage valjogen.41concepts.com for more information.