public class DelegatorGenerator extends Object
Constructor and Description |
---|
DelegatorGenerator() |
public void setGenerateInnerSetter(boolean b)
public boolean isGenerateInnerSetter()
public void setGenerateInnerGetter(boolean b)
public boolean isGenerateInnerGetter()
public void setGenerateNoArgConstructor(boolean b)
public boolean isGenerateNoArgConstructor()
public void setGenerateWrappingConstructor(boolean b)
public boolean isGenerateWrappingConstructor()
public void setWrappingConstructorModifiers(int modifiers)
public int getWrappingConstructorModifiers()
public void setNoArgConstructorModifiers(int modifiers)
public int getNoArgConstructorModifiers()
public void setMethodModifiers(int modifiers)
public int getMethodModifiers()
public void setClassModifiers(int modifiers)
public int getClassModifiers()
public void setSuperclass(Class superclass)
public Class getSuperclass()
public void setExtraInterfaces(Class[] extraInterfaces)
public Class[] getExtraInterfaces()
public Method[] getReflectiveDelegateMethods()
public void setReflectiveDelegateMethods(Method[] reflectiveDelegateMethods)
public ReflectiveDelegationPolicy getReflectiveDelegationPolicy()
public void setReflectiveDelegationPolicy(ReflectiveDelegationPolicy reflectiveDelegationPolicy)
public void writeDelegator(Class intfcl, String genclass, Writer w) throws IOException
IOException
protected void generateDelegateCode(Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
IOException
protected void generateReflectiveDelegateCode(Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
IOException
protected void generateBannerComment(IndentedWriter iw) throws IOException
IOException
protected void generateClassJavaDocComment(IndentedWriter iw) throws IOException
IOException
protected void generateExtraImports(IndentedWriter iw) throws IOException
IOException
protected void generatePreDelegateCode(Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
IOException
protected void generatePostDelegateCode(Class intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
IOException
protected void generateExtraDeclarations(Class intfcl, String genclass, IndentedWriter iw) throws IOException
IOException
Copyright © 2017 com.mchange. All rights reserved.