class MessageLoggerTranslator extends ClassModel
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
LOGGER_PARAMETER_NAME
The logger parameter name.
|
private java.util.Map<MessageMethod,java.lang.String> |
translations
The translation map.
|
sourceFile| Constructor and Description |
|---|
MessageLoggerTranslator(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
java.lang.String className,
java.lang.String superClassName,
java.util.Map<MessageMethod,java.lang.String> translations)
Create a MessageLogger with super class and interface.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.jdeparser.JClassDef |
generateModel()
Generate the code corresponding to this
class model
|
addMessageMethod, addMessageMethod, createReadResolveMethod, generateAndWrite, messageInterface, qualifiedClassNameprivate static final java.lang.String LOGGER_PARAMETER_NAME
private final java.util.Map<MessageMethod,java.lang.String> translations
public MessageLoggerTranslator(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
java.lang.String className,
java.lang.String superClassName,
java.util.Map<MessageMethod,java.lang.String> translations)
filer - the filer used to create the source filemessageInterface - the message interface to implement.className - the implementation class name.superClassName - the super class nametranslations - the translation map.public org.jboss.jdeparser.JClassDef generateModel()
throws java.lang.IllegalStateException
ClassModelgenerateModel in class ClassModeljava.lang.IllegalStateException - if the class has already been defined.