public static final class ProxyGenerator.Builder extends Object
| Constructor and Description |
|---|
ProxyGenerator.Builder(ClassPath classPath,
ClassFile classFile,
MetaClassFilter dependencyFilter)
Creates a new Builder.
|
| Modifier and Type | Method and Description |
|---|---|
ProxyGenerator.Builder |
accessibility(ProxyGenerator.AccessibilityType accessibility)
Indicates the member accessibility to expose.
|
ProxyGenerator |
build()
Builds a ProxyGenerator.
|
ProxyGenerator.Builder |
exportSymbols(boolean value)
Indicates if proxy symbols should be exported (i.e.
|
public ProxyGenerator.Builder(ClassPath classPath, ClassFile classFile, MetaClassFilter dependencyFilter) throws IllegalArgumentException
classPath - the path to search for class files when resolving class dependenciesclassFile - the class to generate a proxy fordependencyFilter - indicates whether methods should be exported. Methods whose
parameters or return types are rejected by the filter are omitted.IllegalArgumentException - if classFile, dependencyFilter or
classPath are nullpublic ProxyGenerator.Builder exportSymbols(boolean value)
value - true if proxy symbols should be exported. The default is false.public ProxyGenerator.Builder accessibility(ProxyGenerator.AccessibilityType accessibility) throws IllegalArgumentException
accessibility - the member accessibility to expose, The default is
AccessibilityType.PUBLIC.IllegalArgumentException - if accessibility is nullpublic ProxyGenerator build()
Copyright © 2012. All Rights Reserved.