public class DelegatorGenerator
extends java.lang.Object
| Constructor and Description |
|---|
DelegatorGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateBannerComment(IndentedWriter iw) |
protected void |
generateClassJavaDocComment(IndentedWriter iw) |
protected void |
generateDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw) |
protected void |
generateExtraDeclarations(java.lang.Class intfcl,
java.lang.String genclass,
IndentedWriter iw) |
protected void |
generateExtraImports(IndentedWriter iw) |
protected void |
generatePostDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw) |
protected void |
generatePreDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw) |
protected void |
generateReflectiveDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw) |
int |
getClassModifiers() |
java.lang.Class[] |
getExtraInterfaces() |
int |
getMethodModifiers() |
int |
getNoArgConstructorModifiers() |
java.lang.reflect.Method[] |
getReflectiveDelegateMethods() |
ReflectiveDelegationPolicy |
getReflectiveDelegationPolicy() |
java.lang.Class |
getSuperclass() |
int |
getWrappingConstructorModifiers() |
boolean |
isGenerateInnerGetter() |
boolean |
isGenerateInnerSetter() |
boolean |
isGenerateNoArgConstructor() |
boolean |
isGenerateWrappingConstructor() |
void |
setClassModifiers(int modifiers) |
void |
setExtraInterfaces(java.lang.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 |
setReflectiveDelegateMethods(java.lang.reflect.Method[] reflectiveDelegateMethods)
Reflectively delegated methods are methods that are not declared in the interface at
build time, but that should reflectively be forwarded at runtime to the inner delegate.
|
void |
setReflectiveDelegationPolicy(ReflectiveDelegationPolicy reflectiveDelegationPolicy)
If ReflectiveDelegationPolicy.USE_MAIN_DELEGATE_INTERFACE, delegate via the same interface we are generating methods against.
|
void |
setSuperclass(java.lang.Class superclass) |
void |
setWrappingConstructorModifiers(int modifiers) |
void |
writeDelegator(java.lang.Class intfcl,
java.lang.String genclass,
java.io.Writer w) |
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(java.lang.Class superclass)
public java.lang.Class getSuperclass()
public void setExtraInterfaces(java.lang.Class[] extraInterfaces)
public java.lang.Class[] getExtraInterfaces()
public java.lang.reflect.Method[] getReflectiveDelegateMethods()
public void setReflectiveDelegateMethods(java.lang.reflect.Method[] reflectiveDelegateMethods)
public ReflectiveDelegationPolicy getReflectiveDelegationPolicy()
public void setReflectiveDelegationPolicy(ReflectiveDelegationPolicy reflectiveDelegationPolicy)
public void writeDelegator(java.lang.Class intfcl,
java.lang.String genclass,
java.io.Writer w)
throws java.io.IOException
java.io.IOExceptionprotected void generateDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw)
throws java.io.IOException
java.io.IOExceptionprotected void generateReflectiveDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw)
throws java.io.IOException
java.io.IOExceptionprotected void generateBannerComment(IndentedWriter iw) throws java.io.IOException
java.io.IOExceptionprotected void generateClassJavaDocComment(IndentedWriter iw) throws java.io.IOException
java.io.IOExceptionprotected void generateExtraImports(IndentedWriter iw) throws java.io.IOException
java.io.IOExceptionprotected void generatePreDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw)
throws java.io.IOException
java.io.IOExceptionprotected void generatePostDelegateCode(java.lang.Class intfcl,
java.lang.String genclass,
java.lang.reflect.Method method,
IndentedWriter iw)
throws java.io.IOException
java.io.IOExceptionprotected void generateExtraDeclarations(java.lang.Class intfcl,
java.lang.String genclass,
IndentedWriter iw)
throws java.io.IOException
java.io.IOException