java.lang.Object
uk.autores.handling.Context
Context information for processing resource files.
Instances are created by the annotation processor and passed to
Handler.handle(Context)
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Implementation of the builder pattern forContext
. -
Method Summary
Modifier and TypeMethodDescriptionThe annotated element.static Context.Builder
builder()
Builder pattern.config()
Configuration.env()
Annotation processing environment.Filer locations to search.namer()
Naming strategy.pkg()
The package of the annotated type.void
printError
(String msg) Convenience method for sending an error to theMessager
.rebuild()
Context.Builder
initialized from current state.Resources to process.
-
Method Details
-
builder
Builder pattern.- Returns:
- new builder
-
rebuild
Context.Builder
initialized from current state.- Returns:
- new builder
-
option
- Parameters:
def
- name provider- Returns:
- the value if present
- See Also:
-
printError
Convenience method for sending an error to theMessager
.- Parameters:
msg
- the error message to be emitted- See Also:
-
env
Annotation processing environment.- Returns:
- annotation processing environment
-
locations
Filer locations to search.- Returns:
- where resources are to be loaded from
- See Also:
-
pkg
The package of the annotated type.- Returns:
- package information
-
annotated
The annotated element.- Returns:
- the annotated element - class or package
- See Also:
-
resources
Resources to process.- Returns:
- unmodifiable resources list
- See Also:
-
config
Configuration.- Returns:
- unmodifiable configuration list
- See Also:
-
namer
Naming strategy.- Returns:
- name resolver
- See Also:
-