| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv static final Comparator | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv Class | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv Method[] | |
| pack-priv ReflectiveDelegationPolicy | |
| pack-priv Class | |
| pack-priv boolean | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | generateBannerComment(IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| protected void | generateClassJavaDocComment(IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| protected void | generateDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| protected void | generateExtraDeclarations(Class<T> intfcl, String genclass, IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| protected void | generateExtraImports(IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| protected void | generatePostDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| protected void | generatePreDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| protected void | generateReflectiveDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw)
Deprecated
as a consequence of
IndentedWriter being deprecated.
|
| public int | |
| public Class | |
| public int | |
| public int | |
| public Method[] | |
| public ReflectiveDelegationPolicy | |
| public Class | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setReflectiveDelegateMethods(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. |
| public void | setReflectiveDelegationPolicy(ReflectiveDelegationPolicy reflectiveDelegationPolicy)
If ReflectiveDelegationPolicy.USE_MAIN_DELEGATE_INTERFACE, delegate via the same interface we are generating methods against. |
| public void | |
| public void | |
| public void |
| class_modifiers | back to summary |
|---|---|
| pack-priv int class_modifiers | |
| classComp | back to summary |
|---|---|
| pack-priv static final Comparator<T> classComp | |
| default_constructor | back to summary |
|---|---|
| pack-priv boolean default_constructor | |
| default_ctor_modifiers | back to summary |
|---|---|
| pack-priv int default_ctor_modifiers | |
| extraInterfaces | back to summary |
|---|---|
| pack-priv Class<T>[] extraInterfaces | |
| inner_getter | back to summary |
|---|---|
| pack-priv boolean inner_getter | |
| inner_setter | back to summary |
|---|---|
| pack-priv boolean inner_setter | |
| method_modifiers | back to summary |
|---|---|
| pack-priv int method_modifiers | |
| reflectiveDelegateMethods | back to summary |
|---|---|
| pack-priv Method[] reflectiveDelegateMethods | |
| reflectiveDelegationPolicy | back to summary |
|---|---|
| pack-priv ReflectiveDelegationPolicy reflectiveDelegationPolicy | |
| superclass | back to summary |
|---|---|
| pack-priv Class<T> superclass | |
| wrapping_constructor | back to summary |
|---|---|
| pack-priv boolean wrapping_constructor | |
| wrapping_ctor_modifiers | back to summary |
|---|---|
| pack-priv int wrapping_ctor_modifiers | |
| DelegatorGenerator | back to summary |
|---|---|
| public DelegatorGenerator() | |
| ensureImports | back to summary |
|---|---|
| private void ensureImports(String genclass, Set<E> imports, Method[] methods) | |
| generateBannerComment | back to summary |
|---|---|
| protected void generateBannerComment(IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| generateClassJavaDocComment | back to summary |
|---|---|
| protected void generateClassJavaDocComment(IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| generateDelegateCode | back to summary |
|---|---|
| protected void generateDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| generateExtraDeclarations | back to summary |
|---|---|
| protected void generateExtraDeclarations(Class<T> intfcl, String genclass, IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| generateExtraImports | back to summary |
|---|---|
| protected void generateExtraImports(IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| generatePostDelegateCode | back to summary |
|---|---|
| protected void generatePostDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| generatePreDelegateCode | back to summary |
|---|---|
| protected void generatePreDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| generateReflectiveDelegateCode | back to summary |
|---|---|
| protected void generateReflectiveDelegateCode(Class<T> intfcl, String genclass, Method method, IndentedWriter iw) throws IOException
Deprecated as a consequence of | |
| getClassModifiers | back to summary |
|---|---|
| public int getClassModifiers() | |
| getExtraInterfaces | back to summary |
|---|---|
| public Class | |
| getMethodModifiers | back to summary |
|---|---|
| public int getMethodModifiers() | |
| getNoArgConstructorModifiers | back to summary |
|---|---|
| public int getNoArgConstructorModifiers() | |
| getReflectiveDelegateMethods | back to summary |
|---|---|
| public Method[] getReflectiveDelegateMethods() | |
| getReflectiveDelegationPolicy | back to summary |
|---|---|
| public ReflectiveDelegationPolicy getReflectiveDelegationPolicy() | |
| getSuperclass | back to summary |
|---|---|
| public Class | |
| getWrappingConstructorModifiers | back to summary |
|---|---|
| public int getWrappingConstructorModifiers() | |
| isGenerateInnerGetter | back to summary |
|---|---|
| public boolean isGenerateInnerGetter() | |
| isGenerateInnerSetter | back to summary |
|---|---|
| public boolean isGenerateInnerSetter() | |
| isGenerateNoArgConstructor | back to summary |
|---|---|
| public boolean isGenerateNoArgConstructor() | |
| isGenerateWrappingConstructor | back to summary |
|---|---|
| public boolean isGenerateWrappingConstructor() | |
| setClassModifiers | back to summary |
|---|---|
| public void setClassModifiers(int modifiers) | |
| setExtraInterfaces | back to summary |
|---|---|
| public void setExtraInterfaces(Class<T>[] extraInterfaces) | |
| setGenerateInnerGetter | back to summary |
|---|---|
| public void setGenerateInnerGetter(boolean b) | |
| setGenerateInnerSetter | back to summary |
|---|---|
| public void setGenerateInnerSetter(boolean b) | |
| setGenerateNoArgConstructor | back to summary |
|---|---|
| public void setGenerateNoArgConstructor(boolean b) | |
| setGenerateWrappingConstructor | back to summary |
|---|---|
| public void setGenerateWrappingConstructor(boolean b) | |
| setMethodModifiers | back to summary |
|---|---|
| public void setMethodModifiers(int modifiers) | |
| setNoArgConstructorModifiers | back to summary |
|---|---|
| public void setNoArgConstructorModifiers(int modifiers) | |
| setReflectiveDelegateMethods | back to summary |
|---|---|
| public void setReflectiveDelegateMethods(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. This permits support of public methods not exposed via the interface, or support of methods added to versions of the interface newer than the build version. Note that the declaring class of these methods is simply ignored. Methods will ve delegated solely by name and parameter. | |
| setReflectiveDelegationPolicy | back to summary |
|---|---|
| public void setReflectiveDelegationPolicy(ReflectiveDelegationPolicy reflectiveDelegationPolicy) If ReflectiveDelegationPolicy.USE_MAIN_DELEGATE_INTERFACE, delegate via the same interface we are generating methods against. (This is useful for supporting methods in versions of the interface with methods that don't appear in the version we are generating against.) If ReflectiveDelegationPolicy.USE_RUNTIME_CLASS, delegate via the runtime class of the delegate. (This is useful if the methods come from multiple interfaces, or we want to be able to forward to methods of the delegate class not captured by an interface. Otherwise, use the delegateClass set in the constructor of ReflectiveDelegationPolicy. Note that if the delegate class is not public or otherwise accessible to the generated proxy, IllegalAccessExceptions may ensue. | |
| setSuperclass | back to summary |
|---|---|
| public void setSuperclass(Class<T> superclass) | |
| setWrappingConstructorModifiers | back to summary |
|---|---|
| public void setWrappingConstructorModifiers(int modifiers) | |
| writeDelegator | back to summary |
|---|---|
| public void writeDelegator(Class<T> intfcl, String genclass, Writer w) throws IOException | |