public abstract class AbstractAnnotationProcessorContext extends Object implements Context
Modifier and Type | Field and Description |
---|---|
static String |
ENABLE_VERBOSE_LOGGING |
Constructor and Description |
---|
AbstractAnnotationProcessorContext(ProcessingEnvironment env) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg) |
void |
error(String msg) |
void |
error(String msg,
Identifiable element) |
CodeModel |
getCodeModel() |
Manifest |
getManifest() |
Messager |
getMessager() |
<T> List<T> |
getModulesByProduct(Product product) |
<T> T |
getProduct(Product product) |
<T> T |
getProduct(Product product,
Identifiable identifiable)
Retrieve a previously generated class that fulfills the specified role
|
<T> T |
getProduct(Product product,
Identifiable identifiable,
String methodName)
Retrieve a previously generated class that fulfills the specified role
|
<T> List<T> |
getProductList(Product product) |
SchemaModel |
getSchemaModel() |
StudioModel |
getStudioModel() |
void |
note(String msg) |
void |
note(String msg,
Identifiable element) |
<T> void |
registerProduct(Product product,
Identifiable identifiable,
String methodName,
T clazz) |
<T> void |
registerProduct(Product product,
Identifiable identifiable,
T clazz) |
<T> void |
registerProduct(Product product,
T clazz) |
void |
warn(String msg) |
void |
warn(String msg,
Identifiable element) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMavenInformation
public static final String ENABLE_VERBOSE_LOGGING
public AbstractAnnotationProcessorContext(ProcessingEnvironment env)
public CodeModel getCodeModel()
getCodeModel
in interface Context
public SchemaModel getSchemaModel()
getSchemaModel
in interface Context
public StudioModel getStudioModel()
getStudioModel
in interface Context
public Manifest getManifest()
getManifest
in interface Context
public Messager getMessager()
getMessager
in interface Context
public void error(String msg, Identifiable element)
public void warn(String msg, Identifiable element)
public void note(String msg, Identifiable element)
public <T> T getProduct(Product product)
getProduct
in interface Context
public <T> T getProduct(Product product, Identifiable identifiable)
getProduct
in interface Context
product
- Role to be fulfilledpublic <T> T getProduct(Product product, Identifiable identifiable, String methodName)
getProduct
in interface Context
product
- Role to be fulfilledidentifiable
- Module for which this role is fulfilledmethodName
- Method for which this role is fulfilledpublic <T> void registerProduct(Product product, T clazz)
registerProduct
in interface Context
product
- clazz
- public <T> void registerProduct(Product product, Identifiable identifiable, T clazz)
registerProduct
in interface Context
product
- clazz
- public <T> void registerProduct(Product product, Identifiable identifiable, String methodName, T clazz)
registerProduct
in interface Context
product
- clazz
- public <T> List<T> getProductList(Product product)
getProductList
in interface Context
public <T> List<T> getModulesByProduct(Product product)
getModulesByProduct
in interface Context
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.