classUtils.delegate
Class DelegateSynthesizer
java.lang.Object
classUtils.delegate.DelegateSynthesizer
public class DelegateSynthesizer
- extends java.lang.Object
DelegateSynthesizer class
These classes are use reflectutil to automatically
generate a new class file
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DelegateSynthesizer
public DelegateSynthesizer()
printUniqueMethodList
public void printUniqueMethodList()
setToplogicalSorting
public void setToplogicalSorting(boolean b)
addMethod
public void addMethod(java.lang.String cn,
java.lang.reflect.Method m)
addDupMethod
public void addDupMethod(java.lang.Object o)
removeDupMethod
public void removeDupMethod(java.lang.Object o)
addDoMethod
public void addDoMethod(java.lang.Object o)
removeDoMethod
public void removeDoMethod(java.lang.Object o)
buildMethodList
public void buildMethodList(java.lang.Object o)
process
public void process()
add
public void add(java.lang.Object o)
getInterface
public java.lang.String getInterface()
getInterfaces
public java.lang.String getInterfaces()
getInterface
public java.lang.String getInterface(java.lang.Object o)
getConstructorParameters
public java.lang.String getConstructorParameters()
getMethodList
public java.lang.String getMethodList(java.lang.reflect.Method[] m,
java.lang.String instanceName)
getMethodPrototypes
public java.lang.String getMethodPrototypes(java.lang.reflect.Method[] m,
java.lang.String instanceName)
getMethodDeclaration
public java.lang.String getMethodDeclaration(java.lang.reflect.Method m,
java.lang.String instanceName)
getMethodPrototype
public java.lang.String getMethodPrototype(java.lang.reflect.Method m,
java.lang.String instanceName)
getReturnType
public static java.lang.String getReturnType(java.lang.reflect.Method m)
isReturningVoid
public static boolean isReturningVoid(java.lang.reflect.Method m)
getModifiers
public static java.lang.String getModifiers(java.lang.reflect.Method m)
getParameters
public java.lang.String getParameters(java.lang.reflect.Method m)
getTypeName
public static java.lang.String getTypeName(java.lang.Class type)
isPublic
public static boolean isPublic(java.lang.reflect.Method m)
stripPackageName
public static java.lang.String stripPackageName(java.lang.String s)
getClassString
public java.lang.String getClassString()
print
public void print()
equals
public boolean equals(java.lang.reflect.Method obj1,
java.lang.reflect.Method obj2)
- Compares this
Method
against the specified object. Returns
true if the objects are the same. Two Methods
are the same if
they were declared by the same class and have the same name
and formal parameter types.
getSaveFileName
public java.lang.String getSaveFileName(java.lang.String prompt)
createFile
public void createFile()
toString
public java.lang.String toString()
- Use the ds to generate output into
a string.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a list of classes with interfaces for proxy delegation
createFile
public void createFile(java.io.BufferedWriter bw)
writeSaveFile
public void writeSaveFile(java.io.BufferedWriter bw,
java.lang.String s)
main
public static void main(java.lang.String[] args)
getCompositeMethodVector
public java.util.Vector getCompositeMethodVector()
setCompositeMethodVector
public void setCompositeMethodVector(java.util.Vector compositeMethodVector)
getDuplicateMethodVector
public java.util.Vector getDuplicateMethodVector()
setDuplicateMethodVector
public void setDuplicateMethodVector(java.util.Vector duplicateMethodVector)