com.mchange.v2.codegen.intfc
Class DelegatorGenerator

java.lang.Object
  extended by com.mchange.v2.codegen.intfc.DelegatorGenerator

public class DelegatorGenerator
extends Object


Constructor Summary
DelegatorGenerator()
           
 
Method Summary
protected  void generateBannerComment(IndentedWriter iw)
           
protected  void generateDelegateCode(Class intfcl, String genclass, Method method, IndentedWriter iw)
           
protected  void generateExtraDeclarations(Class intfcl, String genclass, IndentedWriter iw)
           
protected  void generateExtraImports(IndentedWriter iw)
           
protected  void generatePostDelegateCode(Class intfcl, String genclass, Method method, IndentedWriter iw)
           
protected  void generatePreDelegateCode(Class intfcl, String genclass, Method method, IndentedWriter iw)
           
 int getClassModifiers()
           
 Class[] getExtraInterfaces()
           
 int getMethodModifiers()
           
 int getNoArgConstructorModifiers()
           
 Class getSuperclass()
           
 int getWrappingConstructorModifiers()
           
 boolean isGenerateInnerGetter()
           
 boolean isGenerateInnerSetter()
           
 boolean isGenerateNoArgConstructor()
           
 boolean isGenerateWrappingConstructor()
           
 void setClassModifiers(int modifiers)
           
 void setExtraInterfaces(Class[] extraInterfaces)
           
 void setGenerateInnerGetter(boolean b)
           
 void setGenerateInnerSetter(boolean b)
           
 void setGenerateNoArgConstructor(boolean b)
           
 void setGenerateWrappingConstructor(boolean b)
           
 void setMethodModifiers(int modifiers)
           
 void setNoArgConstructorModifiers(int modifiers)
           
 void setSuperclass(Class superclass)
           
 void setWrappingConstructorModifiers(int modifiers)
           
 void writeDelegator(Class intfcl, String genclass, Writer w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatorGenerator

public DelegatorGenerator()
Method Detail

setGenerateInnerSetter

public void setGenerateInnerSetter(boolean b)

isGenerateInnerSetter

public boolean isGenerateInnerSetter()

setGenerateInnerGetter

public void setGenerateInnerGetter(boolean b)

isGenerateInnerGetter

public boolean isGenerateInnerGetter()

setGenerateNoArgConstructor

public void setGenerateNoArgConstructor(boolean b)

isGenerateNoArgConstructor

public boolean isGenerateNoArgConstructor()

setGenerateWrappingConstructor

public void setGenerateWrappingConstructor(boolean b)

isGenerateWrappingConstructor

public boolean isGenerateWrappingConstructor()

setWrappingConstructorModifiers

public void setWrappingConstructorModifiers(int modifiers)

getWrappingConstructorModifiers

public int getWrappingConstructorModifiers()

setNoArgConstructorModifiers

public void setNoArgConstructorModifiers(int modifiers)

getNoArgConstructorModifiers

public int getNoArgConstructorModifiers()

setMethodModifiers

public void setMethodModifiers(int modifiers)

getMethodModifiers

public int getMethodModifiers()

setClassModifiers

public void setClassModifiers(int modifiers)

getClassModifiers

public int getClassModifiers()

setSuperclass

public void setSuperclass(Class superclass)

getSuperclass

public Class getSuperclass()

setExtraInterfaces

public void setExtraInterfaces(Class[] extraInterfaces)

getExtraInterfaces

public Class[] getExtraInterfaces()

writeDelegator

public void writeDelegator(Class intfcl,
                           String genclass,
                           Writer w)
                    throws IOException
Throws:
IOException

generateDelegateCode

protected void generateDelegateCode(Class intfcl,
                                    String genclass,
                                    Method method,
                                    IndentedWriter iw)
                             throws IOException
Throws:
IOException

generateBannerComment

protected void generateBannerComment(IndentedWriter iw)
                              throws IOException
Throws:
IOException

generateExtraImports

protected void generateExtraImports(IndentedWriter iw)
                             throws IOException
Throws:
IOException

generatePreDelegateCode

protected void generatePreDelegateCode(Class intfcl,
                                       String genclass,
                                       Method method,
                                       IndentedWriter iw)
                                throws IOException
Throws:
IOException

generatePostDelegateCode

protected void generatePostDelegateCode(Class intfcl,
                                        String genclass,
                                        Method method,
                                        IndentedWriter iw)
                                 throws IOException
Throws:
IOException

generateExtraDeclarations

protected void generateExtraDeclarations(Class intfcl,
                                         String genclass,
                                         IndentedWriter iw)
                                  throws IOException
Throws:
IOException