pt.ist.fenixframework.backend.jvstmmem
Class JVSTMMemCodeGenerator
java.lang.Object
pt.ist.fenixframework.dml.CodeGenerator
pt.ist.fenixframework.dml.DefaultCodeGenerator
pt.ist.fenixframework.dml.DAPCodeGenerator
pt.ist.fenixframework.dml.TxIntrospectorCodeGenerator
pt.ist.fenixframework.dml.IndexesCodeGenerator
pt.ist.fenixframework.backend.jvstmmem.JVSTMMemCodeGenerator
public class JVSTMMemCodeGenerator
- extends IndexesCodeGenerator
Method Summary |
protected void |
generateFilePreamble(String subPackageName,
PrintWriter out)
|
protected void |
generateGetterBody(String slotName,
String typeName,
PrintWriter out)
|
protected void |
generateRoleSlot(Role role,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultOneGetter(String slotName,
String typeName,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultStar(Role role,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultStarCount(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
|
protected void |
generateRoleSlotMethodsMultStarGetter(String methodName,
Role role,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultStarHasAnyChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
|
protected void |
generateRoleSlotMethodsMultStarHasChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
|
protected void |
generateRoleSlotMethodsMultStarRemover(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
|
protected void |
generateRoleSlotMethodsMultStarSet(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName)
|
protected void |
generateRoleSlotMethodsMultStarSetter(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
|
protected void |
generateSlot(Slot slot,
PrintWriter out)
|
protected void |
generateSlotAccessors(DomainClass domainClass,
Slot slot,
PrintWriter out)
|
protected void |
generateStaticRoleSlotsMultOne(Role role,
Role otherRole,
PrintWriter out)
|
protected void |
generateVBoxSlotGetter(String methodName,
String accessToVBox,
String name,
String typeName,
PrintWriter out)
|
protected void |
generateVBoxSlotSetter(DomainClass domainClass,
Slot slot,
PrintWriter out)
|
protected Class<? extends ContextFactory> |
getAtomicContextFactoryClass()
Get the class that implements the ContextFactory for AtomicContexts |
protected String |
getBackEndName()
Get the name of the backend for which this class generates code. |
protected String |
getDefaultConfigClassName()
Get the name of the default configuration class of the backend for which this class
generates code. |
protected String |
getDomainClassRoot()
|
Methods inherited from class pt.ist.fenixframework.dml.DAPCodeGenerator |
generateClasses, generateGetterDAPStatement, generateIteratorMethod, generateRelationAddMethodCall, generateRelationGetter, generateRelationRemoveMethodCall, generateRoleSlotMethodsMultOneHas, generateRoleSlotMethodsMultOneRemove, generateRoleSlotMethodsMultStarCount, generateRoleSlotMethodsMultStarHasAnyChild, generateRoleSlotMethodsMultStarHasChild, generateRoleSlotMethodsMultStarSet, generateSetterDAPStatement, getGetterDAPStatement, getSetterDAPStatement |
Methods inherited from class pt.ist.fenixframework.dml.CodeGenerator |
capitalize, closeBlock, closeBlock, comment, endMethodBody, findWrapperEntry, generateBackEndId, generateBaseClass, generateCode, generateCurrentBackEndIdClass, generateGetter, generateInitInstance, generateInitInstanceInitializer, generateInitInstanceMethod, generateInitInstanceMethodBody, generateInitInstanceNoArg, generateInitRoleSlot, generateIteratorMethod, generateOneClass, generatePackageDecl, generatePublicClass, generatePublicClassConstructors, generatePublicFilePreamble, generateRelationGetter, generateRelationGetter, generateRoleGetter, generateRoleMethodGetInverseRole, generateRoleSlotMethods, generateRoleSlotMethodsMultOne, generateRoleSlotMethodsMultOneSetter, generateRoleSlotMethodsMultStarGettersAndIterators, generateRoleSlots, generateRoleSlotsMethods, generateSetter, generateSlotDeclaration, generateSlotGetter, generateSlots, generateSlotsAccessors, generateSlotSetter, generateStaticRelationSlots, generateStaticRoleSlots, generateStaticRoleSlotsMultStar, generateStaticSlots, getAdderMethodName, getBaseDirectoryFor, getCollectionTypeFor, getConcreteSetTypeDeclarationFor, getDefaultCollectionFor, getDirectoryFor, getDirectRelationType, getDomainModel, getEntityFullName, getMethodModifiers, getNewRoleStarSlotExpression, getPackageName, getPackagePrefix, getReferenceType, getRelationAwareBaseTypeFor, getRelationAwareTypeFor, getRelationSlotNameFor, getRemoverMethodName, getRoleArgs, getRoleBaseType, getRoleHandlerName, getRoleManyBaseType, getRoleOneBaseType, getRoleType, getSetTypeDeclarationFor, getSlotExpression, getTypeFullName, makeArg, makeGenericType, newBlock, newline, onNewline, print, printFinalMethod, println, printMethod, printWords, setCollectionToUse, startMethodBody, writeToFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JVSTMMemCodeGenerator
public JVSTMMemCodeGenerator(CompilerArgs compArgs,
DomainModel domainModel)
getDomainClassRoot
protected String getDomainClassRoot()
- Overrides:
getDomainClassRoot
in class CodeGenerator
getBackEndName
protected String getBackEndName()
- Description copied from class:
CodeGenerator
- Get the name of the backend for which this class generates code. This method is used during
the execution of
CodeGenerator.generateBackEndId()
.
- Overrides:
getBackEndName
in class DefaultCodeGenerator
getDefaultConfigClassName
protected String getDefaultConfigClassName()
- Description copied from class:
CodeGenerator
- Get the name of the default configuration class of the backend for which this class
generates code. This method is used during the execution of
CodeGenerator.generateBackEndId()
.
- Overrides:
getDefaultConfigClassName
in class DefaultCodeGenerator
getAtomicContextFactoryClass
protected Class<? extends ContextFactory> getAtomicContextFactoryClass()
- Description copied from class:
CodeGenerator
- Get the class that implements the ContextFactory for AtomicContexts
- Overrides:
getAtomicContextFactoryClass
in class DefaultCodeGenerator
generateFilePreamble
protected void generateFilePreamble(String subPackageName,
PrintWriter out)
- Overrides:
generateFilePreamble
in class CodeGenerator
generateSlot
protected void generateSlot(Slot slot,
PrintWriter out)
- Overrides:
generateSlot
in class CodeGenerator
generateRoleSlot
protected void generateRoleSlot(Role role,
PrintWriter out)
- Overrides:
generateRoleSlot
in class CodeGenerator
generateRoleSlotMethodsMultOneGetter
protected void generateRoleSlotMethodsMultOneGetter(String slotName,
String typeName,
PrintWriter out)
- Overrides:
generateRoleSlotMethodsMultOneGetter
in class CodeGenerator
generateSlotAccessors
protected void generateSlotAccessors(DomainClass domainClass,
Slot slot,
PrintWriter out)
- Overrides:
generateSlotAccessors
in class CodeGenerator
generateVBoxSlotGetter
protected void generateVBoxSlotGetter(String methodName,
String accessToVBox,
String name,
String typeName,
PrintWriter out)
generateVBoxSlotSetter
protected void generateVBoxSlotSetter(DomainClass domainClass,
Slot slot,
PrintWriter out)
generateRoleSlotMethodsMultStar
protected void generateRoleSlotMethodsMultStar(Role role,
PrintWriter out)
- Overrides:
generateRoleSlotMethodsMultStar
in class CodeGenerator
generateRoleSlotMethodsMultStarGetter
protected void generateRoleSlotMethodsMultStarGetter(String methodName,
Role role,
PrintWriter out)
generateRoleSlotMethodsMultStarSetter
protected void generateRoleSlotMethodsMultStarSetter(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
generateRoleSlotMethodsMultStarRemover
protected void generateRoleSlotMethodsMultStarRemover(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
generateRoleSlotMethodsMultStarSet
protected void generateRoleSlotMethodsMultStarSet(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName)
generateRoleSlotMethodsMultStarCount
protected void generateRoleSlotMethodsMultStarCount(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
generateRoleSlotMethodsMultStarHasChild
protected void generateRoleSlotMethodsMultStarHasChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
generateRoleSlotMethodsMultStarHasAnyChild
protected void generateRoleSlotMethodsMultStarHasAnyChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
generateGetterBody
protected void generateGetterBody(String slotName,
String typeName,
PrintWriter out)
- Overrides:
generateGetterBody
in class DAPCodeGenerator
generateStaticRoleSlotsMultOne
protected void generateStaticRoleSlotsMultOne(Role role,
Role otherRole,
PrintWriter out)
- Overrides:
generateStaticRoleSlotsMultOne
in class CodeGenerator
Copyright © 2013. All Rights Reserved.