public class Clazz extends BasicClazz implements Model
| Modifier and Type | Field and Description |
|---|---|
private List<Member> |
chosenComparableMembers |
private String |
fileHeaderText |
private List<Type> |
importTypes |
private String |
javaDoc |
private EnumSet<Modifier> |
modifiers |
private List<Property> |
properties |
private String |
qualifiedMaster |
annotations, configuration, declaredModifiers, helperTypes, members, methods, packageNamebaseClazzType, genericTypeArguments, initializedType, interfaceTypes, superTypesWithAscendantsclazzUsingType, qualifiedProtoTypicalTypeNameMAX_RECURSIVE_LEVEL, NO_DETAILS_LEVEL| Constructor and Description |
|---|
Clazz(Configuration configuration,
String qualifiedClassName,
String qualifiedMaster,
String javaDoc,
String fileHeaderText,
Function<BasicClazz,HelperTypes> helperFactoryMethod)
Constructs a prelimiary Clazz instance from a configuration with only a few values such as name specificed in advanced.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
copy(BasicClazz clazzUsingType) |
boolean |
equals(Object obj) |
List<Member> |
getChosenComparableMembers() |
List<Method> |
getClaimedImplementationClassMethods() |
List<Constructor> |
getClaimedImplementationConstructors() |
List<Method> |
getClaimedImplementationInstanceMethods() |
BasicClazz |
getClazz()
Get the (basic) class that this model is used in.
|
String |
getFileHeaderText() |
Clazz |
getGeneratedClazz()
Get the class that is being generated - the 'root' class of all basic clazzes in the dependency graph.
|
List<Type> |
getImportTypes() |
String |
getJavaDoc() |
String |
getMasterName() |
EnumSet<Modifier> |
getModifiers()
Get modifiers as they should be used generated code when defining something.
|
List<Property> |
getPropertyMethods() |
int |
hashCode() |
void |
initContent(List<Member> members,
List<Property> properties,
List<Method> methods,
List<Type> importTypes,
List<Member> chosenComparableMembers,
EnumSet<Modifier> modifiers,
List<Annotation> annotations)
Nb.
|
boolean |
isAbstract()
Checkes if one of the modifiers used for code generation is ABSTRACT.
|
boolean |
isInImportScope()
Checks if the type is in scope of the class being generated taking imports and default packages etc.
|
boolean |
isSynchronized() |
boolean |
isThisType()
Returns if the type is a generated type (Clazz)
|
protected void |
printExtraBottom(IndentedPrintWriter writer,
int detailLevel) |
protected void |
printExtraTop(IndentedPrintWriter writer,
int detailLevel) |
canBeMoreDetailed, getAnnotations, getConfiguration, getDeclaredModifiers, getDetailLevel, getGenericQualifierText, getHelperTypes, getMembers, getMembersIncludingInherited, getMethods, getPackageName, hasFactoryMethods, hasGenericQualifier, hasInstanceMember, hasInstanceMethod, hasStaticMember, hasStaticMethod, initContent, initialized, isMutable, isThisSuperType, print, tryGetMember, tryGetMemberIncludingInherited, tryGetMethodgetBaseClazzType, getConstructors, getGenericTypeArguments, getInterfaceTypes, getPrototypicalName, getSuperTypesWithAscendants, getTypeCategory, hasAnyMembers, hasArrayMembers, hasCollectionMembers, hasPrimitiveMembers, initType, isObject, isOfQualifiedType, isRootObjectgetName, getPrototypicalQualifiedName, getQualifiedName, getSimpleName, getWrapperName, isArray, isCollection, isExactQualifiedType, isExactType, isExactType, isMultiDimensionalArray, isOfType, isOfType, isPrimitive, isPrimitiveBoolean, isPrimitiveByte, isPrimitiveChar, isPrimitiveDouble, isPrimitiveFloat, isPrimitiveInt, isPrimitiveLong, isPrimitiveShort, isVoidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetConfiguration, getPackageName, getVariablesPrefix, isInDefaultPackage, printgetName, isFinal, isPrivate, isProtected, isPublic, isStatic, isTransientprivate final String qualifiedMaster
private final String javaDoc
private final String fileHeaderText
public Clazz(Configuration configuration, String qualifiedClassName, String qualifiedMaster, String javaDoc, String fileHeaderText, Function<BasicClazz,HelperTypes> helperFactoryMethod)
configuration - The configuration of how generated code should look.qualifiedClassName - The full name of the class that should be generated.qualifiedMaster - The fill name of the item this class was generated from.javaDoc - JavaDoc if any.fileHeaderText - Text to output as header for file(s).helperFactoryMethod - Method that can generate helper types for this class.public Type copy(BasicClazz clazzUsingType)
copy in class BasicClazzpublic BasicClazz getClazz()
Modelpublic Clazz getGeneratedClazz()
ModelgetGeneratedClazz in interface Modelpublic EnumSet<Modifier> getModifiers()
DefinitiongetModifiers in interface DefinitiongetModifiers in class BasicClazzpublic boolean isThisType()
TypeisThisType in class Typepublic String getMasterName()
public String getFileHeaderText()
public boolean isInImportScope()
TypeisInImportScope in class ObjectTypepublic void initContent(List<Member> members, List<Property> properties, List<Method> methods, List<Type> importTypes, List<Member> chosenComparableMembers, EnumSet<Modifier> modifiers, List<Annotation> annotations)
ObjectType.initType(com.fortyoneconcepts.valjogen.model.ObjectType, java.util.List<com.fortyoneconcepts.valjogen.model.Type>, java.util.Set<com.fortyoneconcepts.valjogen.model.Type>, java.util.List<com.fortyoneconcepts.valjogen.model.Type>)
methods must be called for the class to be fully initialized and ready for use. Must be called only once.members - Member variables for class.properties - Property methods for class.methods - Non-property methods for class.importTypes - Types to be imported for class.chosenComparableMembers - Members to be used for compareToOperationmodifiers - The modifiers to use for code generation (NB: This is not declared modifiers for there are none for a class to be generated)annotations - Annotations to use for code generation.public String getJavaDoc()
public boolean isSynchronized()
public boolean isAbstract()
DefinitionisAbstract in interface Definitionpublic List<Constructor> getClaimedImplementationConstructors()
public List<Method> getClaimedImplementationInstanceMethods()
public int hashCode()
hashCode in class BasicClazzpublic boolean equals(Object obj)
equals in class BasicClazzprotected void printExtraTop(IndentedPrintWriter writer, int detailLevel)
printExtraTop in class ModelBaseprotected void printExtraBottom(IndentedPrintWriter writer, int detailLevel)
printExtraBottom in class ModelBase
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.