|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ozoneDB.tools.OPP.ProxyGenerator
I'd like to support static inner classes as OzoneObjects, but where should the proxy classes defined? Within the the proxy class of the enclosing class? If so, what if the enclosing class is not OzoneCompatible?
Field Summary | |
protected boolean |
cache
|
protected java.lang.Class |
cl
|
protected java.util.TreeMap |
doneMethodsIf
Complete signatur of methods already proceeded . |
protected java.lang.reflect.Method[] |
methods
|
protected java.io.PrintWriter |
out
|
protected java.lang.String |
outputDir
|
protected java.lang.String |
proxyClassName
|
protected java.lang.String |
proxyFileName
|
protected boolean |
quiet
|
protected java.lang.Object |
re
|
protected DxHashMap |
updateMethodsIf
Names of update methods as Strings. |
Constructor Summary | |
ProxyGenerator(java.lang.Class _cl,
java.lang.String _methodPattern,
java.lang.String _outputDir,
boolean _quiet,
boolean _cache)
|
Method Summary | |
void |
checkMethodLists()
Checks if all method names in the update lists are processed. |
void |
compileSource()
|
void |
deleteSource()
|
protected java.lang.String |
determineProxyInterface()
|
protected java.lang.String |
determineProxyInterfaceDeep(java.lang.Class of)
|
void |
generateClassSource(java.lang.Class cl)
|
void |
generateSource(boolean searchInterfaceSource)
|
protected static java.lang.String |
getSourcecodeClassName(java.lang.Class cl)
Returns the name of the class in the way it is used within source code. |
protected void |
makeCreateMethod(java.lang.reflect.Constructor ctor)
|
void |
makeCreateMethods()
|
void |
makeCtor(java.lang.reflect.Constructor ctor)
|
void |
makeCtors()
|
void |
makeGlobalHeader()
|
void |
makeLocalHeader()
|
void |
makeMethod(java.lang.reflect.Method m)
|
void |
makeMethods()
|
void |
searchUpdateMethods(boolean searchInterfaceSource)
Employ IfHelper and CDHelper to find the methods that need to acquire WRITE lock. |
protected java.lang.String |
typecodeForClass(java.lang.Class cl)
Gives the Java source code for the type of the specified class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.PrintWriter out
protected java.lang.Class cl
protected java.lang.reflect.Method[] methods
protected java.lang.String outputDir
protected java.lang.String proxyFileName
protected java.lang.String proxyClassName
protected boolean quiet
protected boolean cache
protected java.lang.Object re
protected DxHashMap updateMethodsIf
protected java.util.TreeMap doneMethodsIf
Constructor Detail |
public ProxyGenerator(java.lang.Class _cl, java.lang.String _methodPattern, java.lang.String _outputDir, boolean _quiet, boolean _cache) throws java.lang.Exception
Method Detail |
public void compileSource() throws java.lang.Exception
java.lang.Exception
public void generateClassSource(java.lang.Class cl) throws java.lang.Exception
java.lang.Exception
public void generateSource(boolean searchInterfaceSource)
public void deleteSource() throws java.lang.Exception
java.lang.Exception
public void makeGlobalHeader() throws java.lang.Exception
java.lang.Exception
public void makeLocalHeader() throws java.lang.Exception
java.lang.Exception
public void searchUpdateMethods(boolean searchInterfaceSource) throws java.lang.Exception
java.lang.Exception
public void makeCtors() throws java.lang.Exception
java.lang.Exception
public void makeCtor(java.lang.reflect.Constructor ctor) throws java.lang.Exception
java.lang.Exception
protected java.lang.String determineProxyInterface()
protected java.lang.String determineProxyInterfaceDeep(java.lang.Class of)
public void makeCreateMethods() throws java.lang.Exception
java.lang.Exception
protected void makeCreateMethod(java.lang.reflect.Constructor ctor) throws java.lang.Exception
java.lang.Exception
public void makeMethods() throws java.lang.Exception
java.lang.Exception
public void checkMethodLists() throws java.lang.Exception
java.lang.Exception
public void makeMethod(java.lang.reflect.Method m) throws java.lang.Exception
java.lang.Exception
protected java.lang.String typecodeForClass(java.lang.Class cl) throws java.lang.Exception
java.lang.Exception
protected static java.lang.String getSourcecodeClassName(java.lang.Class cl)
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |