public class ProcessingContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
attributes |
private APTLogger |
logger |
private java.util.Map<java.lang.String,java.lang.String> |
options |
private javax.annotation.processing.ProcessingEnvironment |
penv |
private javax.annotation.processing.RoundEnvironment |
renv |
Constructor and Description |
---|
ProcessingContext(javax.annotation.processing.ProcessingEnvironment penv) |
Modifier and Type | Method and Description |
---|---|
void |
destroyRound() |
java.lang.Object |
get(java.lang.String key) |
APTLogger |
getLogger() |
java.util.Map<java.lang.String,java.lang.String> |
getOptions() |
javax.annotation.processing.ProcessingEnvironment |
getProcessingEnvironment() |
javax.annotation.processing.RoundEnvironment |
getRoundEnvironment() |
TemplateEngine |
getTemplateEngine() |
void |
initRound(javax.annotation.processing.RoundEnvironment renv) |
java.lang.Object |
put(java.lang.String key,
Adds some attribute to be shared across processing environment.
|
key
- The unique key (name) of the attribute.value
- The value to be stored under the key.key
- The name of attribute to be returned.