|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.objectweb.speedo.genclass.merger.GenClassMerger
org.objectweb.speedo.genclass.merger.jdo.JDOGenClassMerger
public class JDOGenClassMerger
Generate the sub class of the generic class dedicated to JDO.
Field Summary | |
---|---|
static java.lang.String |
JDO_GEN_CLASS_NAME
|
static java.lang.String |
JDO_ITF
|
Fields inherited from class org.objectweb.speedo.genclass.merger.GenClassMerger |
---|
GEN_CLASS_NAME, logger, LOGGER_NAME, personality |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
JDOGenClassMerger()
|
Method Summary | |
---|---|
protected java.lang.String |
getClassToWrite(java.lang.String gcn)
The class to write is into the sub package 'jdo' and the name is prefixed by JDO. |
protected java.lang.String |
getLoggerName()
|
protected java.lang.String |
getSecondClass(java.lang.String gcn)
The second class is the defined by #EJB_GEN_CLASS_NAME |
protected boolean |
requireEnhancement(GCInfo gc)
return false if the class already implements JDOPersistentObject interface, otherwise true. |
protected void |
writeFirstClass(GCInfo gc,
org.objectweb.asm.ClassVisitor current)
There is no first class, because the class is created. |
protected void |
writeSecondClass(GCInfo gc,
org.objectweb.asm.ClassVisitor current)
Add a no arg constructor in addition to the normal behavior |
Methods inherited from class org.objectweb.speedo.genclass.merger.GenClassMerger |
---|
checkAfter, execute, getFirstClass, getSrc, loadJavaClass, mergeGenClass, newGCInfo, setSrc, writeJavaClass |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JDO_GEN_CLASS_NAME
public static final java.lang.String JDO_ITF
Constructor Detail |
---|
public JDOGenClassMerger()
Method Detail |
---|
protected java.lang.String getLoggerName()
getLoggerName
in class GenClassMerger
protected java.lang.String getClassToWrite(java.lang.String gcn)
getClassToWrite
in class GenClassMerger
protected final java.lang.String getSecondClass(java.lang.String gcn)
getSecondClass
in class GenClassMerger
protected boolean requireEnhancement(GCInfo gc)
requireEnhancement
in class GenClassMerger
protected void writeFirstClass(GCInfo gc, org.objectweb.asm.ClassVisitor current) throws SpeedoException
writeFirstClass
in class GenClassMerger
SpeedoException
protected void writeSecondClass(GCInfo gc, org.objectweb.asm.ClassVisitor current) throws SpeedoException
writeSecondClass
in class GenClassMerger
SpeedoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |