java.lang.Object
uk.autores.handling.Context.Builder
- Enclosing class:
- Context
Implementation of the
builder pattern
for
Context.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates immutable context instance.setAnnotated(Element annotated) Sets package or type.Sets configuration.Sets processing environment.setLocation(List<JavaFileManager.Location> locations) Sets locations to search.Sets naming conventions.Sets annotated package.setResources(List<Resource> resources) Sets resources to process.
-
Method Details
-
build
Creates immutable context instance.- Returns:
- new context
-
setAnnotated
Sets package or type.- Parameters:
annotated- element- Returns:
- this
- See Also:
-
setConfig
Sets configuration.- Parameters:
config- configuration options- Returns:
- this
- See Also:
-
setEnv
Sets processing environment.- Parameters:
env- processing environment- Returns:
- this
- See Also:
-
setLocation
Sets locations to search.- Parameters:
locations- resource location- Returns:
- this
- See Also:
-
setNamer
Sets naming conventions.- Parameters:
namer- generated code namer- Returns:
- this
- See Also:
-
setPkg
Sets annotated package.- Parameters:
pkg- annotated element package- Returns:
- this
- See Also:
-
setResources
Sets resources to process.- Parameters:
resources- resource files- Returns:
- this
- See Also:
-