|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.objectweb.jorm.comp.generator.lib.CommonHelper
|
+--org.objectweb.jorm.comp.generator.file.FileBindingMOP
| Inner classes inherited from class org.objectweb.jorm.comp.generator.lib.CommonHelper |
CommonHelper.PNGDesc |
| Field Summary | |
protected static java.lang.String |
PACCESSOR_VAR_NAME
|
protected static java.lang.String |
PACCESSORGEN_VAR_NAME
|
| Fields inherited from class org.objectweb.jorm.comp.generator.lib.CommonHelper |
logger, loggerFactory, PN_GET_TYPES |
| Constructor Summary | |
FileBindingMOP()
|
|
| Method Summary | |
java.lang.String[] |
getImplements(Class c,
CompilerParameter cp)
defines interfaces to implement by the current object. |
java.lang.String[] |
getImportedClassName(Class c,
CompilerParameter cp)
defines imports needed by the PBinding generation. |
java.lang.String[] |
getTemplateLibraries()
|
void |
initContext(org.apache.velocity.context.Context ctx)
|
void |
writeConstructorBody(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
This methods permits to specify initializations which must be done at the instanciation time. |
void |
writeCreate(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
To do nothing, because the code is common to the remove, create or update cases. |
void |
writeExistsBody(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
writes the code for the "exists" method needed by a Binding object. |
void |
writeExistsHeader(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
No specific header |
void |
writeExistsTail(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
No specific tail |
void |
writeOtherMethods(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
writes the code for other methods needed by a Binding object. |
void |
writeReadBody(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
|
void |
writeReadHeader(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
No specific header |
void |
writeReadTail(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
No specific tail |
void |
writeRemove(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
To do nothing, because the code is common to the remove, create or update cases. |
void |
writeUpdate(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
To do nothing, because the code is common to the remove, create or update cases. |
void |
writeVariables(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
writes the definitions of all variables needed by a Binding object. |
void |
writeWriteHeader(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
writes the code for the "write" header method needed by a Binding object. |
void |
writeWriteTail(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
writes the code for the "write" tail method needed by a Binding object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String PACCESSOR_VAR_NAME
protected static final java.lang.String PACCESSORGEN_VAR_NAME
| Constructor Detail |
public FileBindingMOP()
| Method Detail |
public void initContext(org.apache.velocity.context.Context ctx)
initContext in interface MOPpublic java.lang.String[] getTemplateLibraries()
getTemplateLibraries in interface MOP
public void writeVariables(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
block - The class definition block within which the variable
definitions are written.
public void writeConstructorBody(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
block - The class definition block within which the variable
definitions are written.
public void writeWriteHeader(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
block - The block within which the code is written.moc - The meta object which represents the jorm class
public void writeWriteTail(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
block - The block within which the code is written.moc - The meta object which represents the jorm class
public void writeRemove(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public void writeCreate(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public void writeUpdate(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public void writeReadHeader(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public void writeReadBody(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public void writeReadTail(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public void writeExistsHeader(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public void writeExistsBody(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
block - The block within which the code is written.
public void writeExistsTail(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
public java.lang.String[] getImplements(Class c,
CompilerParameter cp)
throws java.lang.Exception
public java.lang.String[] getImportedClassName(Class c,
CompilerParameter cp)
throws java.lang.Exception
public void writeOtherMethods(org.objectweb.util.io.api.Block block,
Class moc,
CompilerParameter cp)
throws java.lang.Exception
block - The block within which the code is written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||