Package | Description |
---|---|
org.jboss.logging.processor.apt | |
org.jboss.logging.processor.generator.model | |
org.jboss.logging.processor.model | |
org.jboss.logging.processor.validation |
Modifier and Type | Class and Description |
---|---|
private static class |
MessageMethodBuilder.AptMessageMethod
An implementation for the MessageMethod interface.
|
Modifier and Type | Field and Description |
---|---|
private MessageMethod |
ThrowableTypeFactory.AptReturnThrowableType.messageMethod |
private MessageMethod |
ReturnTypeFactory.AptReturnType.method |
Modifier and Type | Field and Description |
---|---|
private java.util.List<MessageMethod> |
MessageInterfaceFactory.AptMessageInterface.messageMethods |
private java.util.Set<MessageMethod> |
MessageInterfaceFactory.LoggerInterface.messageMethods |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<java.io.File,java.util.Map<MessageMethod,java.lang.String>> |
TranslationClassGenerator.allInterfaceTranslations(MessageInterface messageInterface,
java.util.List<java.io.File> files) |
(package private) java.util.Set<MessageMethod> |
MessageMethodBuilder.build() |
java.util.Collection<MessageMethod> |
MessageInterfaceFactory.AptMessageInterface.methods() |
java.util.Collection<MessageMethod> |
MessageInterfaceFactory.LoggerInterface.methods() |
private java.util.Map<MessageMethod,java.lang.String> |
TranslationClassGenerator.validateTranslationMessages(MessageInterface messageInterface,
java.io.File file)
Returns only the valid translations message corresponding
to the declared
MessageMethod methods in the
MessageBundle or MessageLogger
interface. |
Modifier and Type | Method and Description |
---|---|
int |
MessageMethodBuilder.AptMessageMethod.compareTo(MessageMethod o) |
static Parameter |
ParameterFactory.forMessageMethod(MessageMethod messageMethod) |
static ThrowableType |
ThrowableTypeFactory.forReturnType(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
javax.lang.model.type.TypeMirror type,
MessageMethod messageMethod)
Creates a new descriptor that is not primitive.
|
private static FormatValidator |
TranslationClassGenerator.getValidatorFor(MessageMethod messageMethod,
java.lang.String translationMessage) |
private boolean |
TranslationFileGenerator.isMethodWritable(MessageMethod method) |
static ReturnType |
ReturnTypeFactory.of(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
javax.lang.model.type.TypeMirror returnType,
MessageMethod method) |
private java.util.Map<java.lang.String,java.lang.String> |
TranslationFileGenerator.parseParameterComments(MessageMethod messageMethod) |
private void |
TranslationFileGenerator.writeSkeletonMessageMethod(java.io.BufferedWriter writer,
MessageMethod messageMethod) |
Modifier and Type | Method and Description |
---|---|
private void |
TranslationClassGenerator.generateSourceFileFor(MessageInterface messageInterface,
java.io.File translationFile,
java.util.Map<MessageMethod,java.lang.String> translations)
Generate a class for the given translation file.
|
Constructor and Description |
---|
AptReturnThrowableType(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
MessageMethod messageMethod,
javax.lang.model.type.TypeMirror type)
Creates a new descriptor that is not primitive.
|
AptReturnType(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
javax.lang.model.type.TypeMirror returnType,
MessageMethod method) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<MessageMethod,java.lang.String> |
MessageBundleTranslator.translations
The translation map.
|
private java.util.Map<MessageMethod,java.lang.String> |
MessageLoggerTranslator.translations
The translation map.
|
Modifier and Type | Method and Description |
---|---|
(package private) org.jboss.jdeparser.JMethodDef |
ClassModel.addMessageMethod(MessageMethod messageMethod)
Adds a method to return the message value.
|
(package private) org.jboss.jdeparser.JMethodDef |
ClassModel.addMessageMethod(MessageMethod messageMethod,
java.lang.String messageValue)
Adds a method to return the message value.
|
protected void |
ImplementationClassModel.addThrownTypes(MessageMethod messageMethod,
org.jboss.jdeparser.JMethodDef jMethod) |
(package private) void |
ImplementationClassModel.createBundleMethod(org.jboss.jdeparser.JClassDef classDef,
MessageMethod messageMethod)
Create the bundle method body.
|
private void |
MessageLoggerImplementor.createLoggerMethod(MessageMethod messageMethod,
org.jboss.jdeparser.JClassDef classDef,
org.jboss.jdeparser.JAssignableExpr logger)
Create the logger method body.
|
private java.util.Map<Parameter,org.jboss.jdeparser.JParamDeclaration> |
MessageLoggerImplementor.createParameters(MessageMethod messageMethod,
org.jboss.jdeparser.JMethodDef method) |
private org.jboss.jdeparser.JVarDeclaration |
ImplementationClassModel.createReturnType(MessageMethod messageMethod,
org.jboss.jdeparser.JBlock body,
org.jboss.jdeparser.JCall format) |
Modifier and Type | Method and Description |
---|---|
static ClassModel |
ClassModelFactory.translation(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
java.lang.String translationSuffix,
java.util.Map<MessageMethod,java.lang.String> translations)
Creates a class model for created translation implementations of the message interface.
|
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.
|
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 |
---|---|
java.util.Collection<MessageMethod> |
MessageInterface.methods()
A collection of all the methods this interface needs to implement.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<MessageIdValidator.MessageKey,MessageMethod> |
MessageIdValidator.usedMessageIds |
Modifier and Type | Method and Description |
---|---|
private java.util.Set<MessageMethod> |
Validator.getAllMethods(MessageInterface messageInterface)
Finds all methods for the given interface, but ignores logger interface methods.
|
Modifier and Type | Method and Description |
---|---|
static FormatValidator |
FormatValidatorFactory.create(MessageMethod messageMethod) |
java.util.Collection<ValidationMessage> |
MessageIdValidator.validate(MessageInterface messageInterface,
MessageMethod messageMethod) |
private java.util.Collection<ValidationMessage> |
Validator.validateBundleMethod(MessageMethod messageMethod) |
private java.util.Collection<ValidationMessage> |
Validator.validateLoggerMethod(MessageMethod messageMethod) |
private java.util.Collection<ValidationMessage> |
Validator.validateParameters(MessageMethod messageMethod) |
Modifier and Type | Method and Description |
---|---|
private java.util.Collection<ValidationMessage> |
Validator.validateBundle(java.util.Set<MessageMethod> messageMethods)
Validate message bundle messageMethods.
|
private java.util.Collection<ValidationMessage> |
Validator.validateCommon(MessageInterface messageInterface,
java.util.Set<MessageMethod> messageMethods)
Validate common attributes to all interfaces.
|
private java.util.Collection<ValidationMessage> |
Validator.validateLogger(java.util.Set<MessageMethod> messageMethods)
Validate message logger messageMethods.
|