public class DMWGenerator extends BaseDMWGenerator
allAttr, anyAttributes, anyMVAttributes, anyMVRefs, anySVAttributes, attributeInfo, baseWrapperImport, dmwdir, extendedDir, fileHeader, fullJavaEnvironment, genContext, gendir, genSuffix, hierarchicWrapperImport, namedWrapperImport, progress, schema, sformatter, useWrappedObjectRefs| Constructor and Description |
|---|
DMWGenerator() |
createExtendedWrapperClasses, createIfRequired, createWrappers, dumpAUX, gatherUserInput, getAttributesAndImports, setFileHeader, setProgressStreampublic void generateCode(DmgConfigDMO config, ConfigLocation loc, ConfigFinder f, SchemaManager sm) throws IOException, ResultException, DmcNameClashException, DmcValueException
DarkMatterGeneratorIFconfig - The generator config.loc - The location where the config was found. Code if often generated relative to
this location.f - The configuration findersm - The schema manager that contains the base schema plus any others that
were requested in the .dmg config file via the schemaToLoad attribute.IOExceptionResultExceptionDmcNameClashExceptionDmcValueExceptionprotected void createCloneItMethod(BufferedWriter out, DmgConfigDMO config, ConfigLocation loc, ConfigFinder f, SchemaManager sm, ClassDefinition cd) throws IOException
BaseDMWGeneratorcreateCloneItMethod in class BaseDMWGeneratorIOExceptionpublic void getAdditionalWrapperImports(DmgConfigDMO config, ConfigLocation loc, ConfigFinder f, SchemaManager sm, ClassDefinition cd, ImportManager imports) throws IOException
BaseDMWGeneratorgetAdditionalWrapperImports in class BaseDMWGeneratorIOExceptionpublic void getAdditionalWrapperInterfaces(DmgConfigDMO config, ConfigLocation loc, ConfigFinder f, SchemaManager sm, ClassDefinition cd, ImplementsManager implManager) throws IOException
BaseDMWGeneratorgetAdditionalWrapperInterfaces in class BaseDMWGeneratorIOExceptionpublic void dumpAdditionalWrapperDefinitions(DmgConfigDMO config, ConfigLocation loc, ConfigFinder f, SchemaManager sm, ClassDefinition cd, BufferedWriter out) throws IOException
BaseDMWGeneratordumpAdditionalWrapperDefinitions in class BaseDMWGeneratorIOExceptionpublic void dumpAdditionalWrapperFunctions(DmgConfigDMO config, ConfigLocation loc, ConfigFinder f, SchemaManager sm, ClassDefinition cd, BufferedWriter out) throws IOException
BaseDMWGeneratordumpAdditionalWrapperFunctions in class BaseDMWGeneratorIOExceptionpublic void dumpExtendedClass(DmgConfigDMO config, ConfigLocation loc, ConfigFinder f, SchemaManager sm, ClassDefinition cd) throws IOException
BaseDMWGeneratordumpExtendedClass in class BaseDMWGeneratorIOExceptionCopyright © 2023. All rights reserved.