Class ConstantsWriter
- java.lang.Object
-
- de.hybris.bootstrap.codegenerator.AbstractImportProvider
-
- de.hybris.bootstrap.codegenerator.ClassWriter
-
- de.hybris.bootstrap.codegenerator.jalo.JaloClassWriter
-
- de.hybris.bootstrap.codegenerator.jalo.ConstantsWriter
-
- All Implemented Interfaces:
CodeWriter
public class ConstantsWriter extends JaloClassWriter
-
-
Field Summary
-
Fields inherited from class de.hybris.bootstrap.codegenerator.ClassWriter
GENERATED_NOTICE
-
-
Constructor Summary
Constructors Constructor Description ConstantsWriter(YExtension extension, CodeGenerator generator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringassembleConstantsClassName(CodeGenerator gen, YExtension ext)ClassWritercreateNonAbstractClassWriter()protected voidfill()protected java.util.Set<YEnumType>getDeclaredEnumTypes()protected java.util.Set<YEnumType>getExtendedEnumTypes()static booleanrequiresAttributeConstants(YComposedType cType, YExtension ext)static java.util.Map<YComposedType,java.util.List<YAttributeDescriptor>>sortAttributes(java.util.Collection<YAttributeDescriptor> attributes)static java.util.List<YType>sortTypes(java.util.Collection<YType> types)-
Methods inherited from class de.hybris.bootstrap.codegenerator.jalo.JaloClassWriter
addAnnotations, getConstantsClassName, isJaloLogicFree, sortMethods
-
Methods inherited from class de.hybris.bootstrap.codegenerator.ClassWriter
addAnnotation, addAnnotationIfDeprecated, addConstantDeclaration, addConstantDeclaration, addConstructor, addDeclaration, addDeclaration, addDeclaration, addInterface, addMethod, assembleAbstractClassName, assembleClassName, containsAnnotation, firstLetterUpperCase, getAnnotations, getClassName, getClassToExtend, getConstantDeclarations, getConstructors, getCopyright, getDeclarations, getExtension, getGenerator, getInfo, getInterfaces, getJavadoc, getMethods, getModifiers, getPackageName, getRequiredImports, getVisibility, isGeneratePartOf, processAnnotations, removeSelfImport, setClassToExtend, setCopyright, setJavadoc, setModifiers, setPackageName, setVisibility, write, writeMethods, writeSignature
-
Methods inherited from class de.hybris.bootstrap.codegenerator.AbstractImportProvider
addRequiredImport
-
-
-
-
Constructor Detail
-
ConstantsWriter
public ConstantsWriter(YExtension extension, CodeGenerator generator)
-
-
Method Detail
-
assembleConstantsClassName
public static java.lang.String assembleConstantsClassName(CodeGenerator gen, YExtension ext)
-
createNonAbstractClassWriter
public ClassWriter createNonAbstractClassWriter()
-
fill
protected void fill()
- Overrides:
fillin classClassWriter
-
requiresAttributeConstants
public static boolean requiresAttributeConstants(YComposedType cType, YExtension ext)
-
sortAttributes
public static java.util.Map<YComposedType,java.util.List<YAttributeDescriptor>> sortAttributes(java.util.Collection<YAttributeDescriptor> attributes)
-
getExtendedEnumTypes
protected java.util.Set<YEnumType> getExtendedEnumTypes()
-
getDeclaredEnumTypes
protected java.util.Set<YEnumType> getDeclaredEnumTypes()
-
-