class MessageBundleTranslator extends ClassModel
Modifier and Type | Field and Description |
---|---|
private java.util.Map<MessageMethod,java.lang.String> |
translations
The translation map.
|
sourceFile
Constructor and Description |
---|
MessageBundleTranslator(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 MessageBundle 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, qualifiedClassName
private final java.util.Map<MessageMethod,java.lang.String> translations
public MessageBundleTranslator(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
ClassModel
generateModel
in class ClassModel
java.lang.IllegalStateException
- if the class has already been defined.