classUtils.delegate
Class DelegateSynthesizer

java.lang.Object
  extended by classUtils.delegate.DelegateSynthesizer

public class DelegateSynthesizer
extends java.lang.Object

DelegateSynthesizer class These classes are use reflectutil to automatically generate a new class file


Constructor Summary
DelegateSynthesizer()
           
 
Method Summary
 void add(java.lang.Object o)
           
 void addDoMethod(java.lang.Object o)
           
 void addDupMethod(java.lang.Object o)
           
 void addMethod(java.lang.String cn, java.lang.reflect.Method m)
           
 void buildMethodList(java.lang.Object o)
           
 void createFile()
           
 void createFile(java.io.BufferedWriter bw)
           
 boolean equals(java.lang.reflect.Method obj1, java.lang.reflect.Method obj2)
          Compares this Method against the specified object.
 java.lang.String getClassString()
           
 java.util.Vector getCompositeMethodVector()
           
 java.lang.String getConstructorParameters()
           
 java.util.Vector getDuplicateMethodVector()
           
 java.lang.String getInterface()
           
 java.lang.String getInterface(java.lang.Object o)
           
 java.lang.String getInterfaces()
           
 java.lang.String getMethodDeclaration(java.lang.reflect.Method m, java.lang.String instanceName)
           
 java.lang.String getMethodList(java.lang.reflect.Method[] m, java.lang.String instanceName)
           
 java.lang.String getMethodPrototype(java.lang.reflect.Method m, java.lang.String instanceName)
           
 java.lang.String getMethodPrototypes(java.lang.reflect.Method[] m, java.lang.String instanceName)
           
static java.lang.String getModifiers(java.lang.reflect.Method m)
           
 java.lang.String getParameters(java.lang.reflect.Method m)
           
static java.lang.String getReturnType(java.lang.reflect.Method m)
           
 java.lang.String getSaveFileName(java.lang.String prompt)
           
static java.lang.String getTypeName(java.lang.Class type)
           
static boolean isPublic(java.lang.reflect.Method m)
           
static boolean isReturningVoid(java.lang.reflect.Method m)
           
static void main(java.lang.String[] args)
           
 void print()
           
 void printUniqueMethodList()
           
 void process()
           
 void removeDoMethod(java.lang.Object o)
           
 void removeDupMethod(java.lang.Object o)
           
 void setCompositeMethodVector(java.util.Vector compositeMethodVector)
           
 void setDuplicateMethodVector(java.util.Vector duplicateMethodVector)
           
 void setToplogicalSorting(boolean b)
           
static java.lang.String stripPackageName(java.lang.String s)
           
 java.lang.String toString()
          Use the ds to generate output into a string.
 void writeSaveFile(java.io.BufferedWriter bw, java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegateSynthesizer

public DelegateSynthesizer()
Method Detail

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)