org.plasma.text.lang3gl.java
Class SDOClassFactory
java.lang.Object
org.plasma.text.lang3gl.java.DefaultFactory
org.plasma.text.lang3gl.java.SDODefaultFactory
org.plasma.text.lang3gl.java.SDOClassFactory
- All Implemented Interfaces:
- ClassFactory, Lang3GLContentFactory
public class SDOClassFactory
- extends SDODefaultFactory
- implements ClassFactory
| Methods inherited from class org.plasma.text.lang3gl.java.DefaultFactory |
beginBody, collectDataClassNames, collectDataClassNames, collectDataFieldClassNamesDeep, collectProvisioningClasses, collectProvisioningClassesDeep, collectProvisioningFields, collectProvisioningSuperclasses, collectReferenceClassNames, collectReferenceClassNames, collectReferenceFieldClassNamesDeep, collectSuperclassNames, collectSuperClassNames, collectSuperClassNames, createCreatorByAbstractClassDeclaration, createCreatorDeclaration, createFieldImportMap, createImportDeclaration, createImportDeclarations, createIsSetDeclaration, createManyAdderDeclaration, createManyCountDeclaration, createManyGetterDeclaration, createManyIndexGetterDeclaration, createManyRemoverDeclaration, createManySetterDeclaration, createSingularGetterDeclaration, createSingularSetterDeclaration, createUnsetterDeclaration, endBody, firstToUpperCase, getContext, getDataFlavor, getPrimitiveTypeDefault, getTypeClass, getTypeClass, getTypeClassName, getTypeClassName, getWrappedDocmentations, hasOnlySingilarFields, hasOnlySingilarFieldsDeep, indent, newline, toConstantName, toEnumLiteralName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDOClassFactory
public SDOClassFactory(Lang3GLContext context)
createFileName
public String createFileName(Class clss)
- Description copied from interface:
ClassFactory
- Returns an 3Gl language specific file name for the given Class based on
configuration settings.
- Specified by:
createFileName in interface ClassFactory
- Parameters:
clss - the class
- Returns:
- an 3Gl language specific file name for the given Class based on
configuration settings
- See Also:
Class
createContent
public String createContent(Package pkg,
Class clss)
- Description copied from interface:
ClassFactory
- Returns an 3Gl language specific content for the given Package and Type
- Specified by:
createContent in interface ClassFactory
- Parameters:
pkg - the Packageclss - the Type
- Returns:
- the content
createTypeDeclaration
protected String createTypeDeclaration(Package pkg,
Class clss)
createStaticFieldDeclarations
protected String createStaticFieldDeclarations(Class clss)
createPrivateFieldDeclaration
protected String createPrivateFieldDeclaration(Class clss,
Property field)
createConstructors
protected String createConstructors(Package pkg,
Class clss)
createOperations
protected String createOperations(Package pkg,
Class clss)
createOperations
protected String createOperations(Package pkg,
Class clss,
Property field)
createDirectoryName
public String createDirectoryName(Package pkg)
- Description copied from interface:
Lang3GLContentFactory
- Returns an 3Gl language specific directory name for the given Package based on
configuration settings.
- Specified by:
createDirectoryName in interface Lang3GLContentFactory- Overrides:
createDirectoryName in class SDODefaultFactory
- Parameters:
pkg - the package
- Returns:
- an 3Gl language specific directory name for the given Package based on
configuration settings
- See Also:
Package
createPackageName
protected String createPackageName(Package pkg)
createPackageDeclaration
protected String createPackageDeclaration(Package pkg)
- Overrides:
createPackageDeclaration in class SDODefaultFactory
createThirdPartyImportDeclarations
protected String createThirdPartyImportDeclarations(Package pkg,
Class clss)
Copyright © 2014. All rights reserved.