public class ConstantsWriter extends JaloClassWriter
GENERATED_NOTICE| Constructor and Description |
|---|
ConstantsWriter(YExtension extension,
CodeGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
static String |
assembleConstantsClassName(CodeGenerator gen,
YExtension ext) |
ClassWriter |
createNonAbstractClassWriter() |
protected void |
fill() |
protected Set<YEnumType> |
getDeclaredEnumTypes() |
protected Set<YEnumType> |
getExtendedEnumTypes() |
static boolean |
requiresAttributeConstants(YComposedType cType,
YExtension ext) |
static Map<YComposedType,List<YAttributeDescriptor>> |
sortAttributes(Collection<YAttributeDescriptor> attributes) |
static List<YType> |
sortTypes(Collection<YType> types) |
getConstantsClassName, sortMethodsaddAnnotation, addConstantDeclaration, addConstantDeclaration, addConstructor, addDeclaration, addDeclaration, addDeclaration, addInterface, addMethod, assembleAbstractClassName, assembleClassName, containsAnnotation, disableSuppressPMD, firstLetterUpperCase, getAnnotations, getClassName, getClassToExtend, getConstantDeclarations, getConstructors, getCopyright, getDeclarations, getExtension, getGenerator, getInfo, getInterfaces, getJavadoc, getMethods, getModifiers, getPackageName, getRequiredImports, getVisibility, isGeneratePartOf, setClassToExtend, setCopyright, setJavadoc, setModifiers, setPackageName, setVisibility, write, writeMethods, writeSignatureaddRequiredImportpublic ConstantsWriter(YExtension extension, CodeGenerator generator)
public static String assembleConstantsClassName(CodeGenerator gen, YExtension ext)
public ClassWriter createNonAbstractClassWriter()
protected void fill()
fill in class ClassWriterpublic static boolean requiresAttributeConstants(YComposedType cType, YExtension ext)
public static Map<YComposedType,List<YAttributeDescriptor>> sortAttributes(Collection<YAttributeDescriptor> attributes)
public static List<YType> sortTypes(Collection<YType> types)
Copyright © 2017 SAP SE. All Rights Reserved.