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 |
MessageInterfaceFactory.AptMessageInterface
Message interface implementation.
|
private static class |
MessageInterfaceFactory.LoggerInterface |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<MessageInterface> |
MessageInterfaceFactory.AptMessageInterface.extendedInterfaces |
Modifier and Type | Method and Description |
---|---|
static MessageInterface |
MessageInterfaceFactory.of(javax.annotation.processing.ProcessingEnvironment processingEnvironment,
javax.lang.model.element.TypeElement interfaceElement)
Creates a message interface from the
TypeElement specified by the interfaceElement parameter. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<MessageInterface> |
MessageInterfaceFactory.AptMessageInterface.extendedInterfaces() |
java.util.Set<MessageInterface> |
MessageInterfaceFactory.LoggerInterface.extendedInterfaces() |
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) |
int |
MessageInterfaceFactory.AptMessageInterface.compareTo(MessageInterface o) |
int |
MessageInterfaceFactory.LoggerInterface.compareTo(MessageInterface o) |
private java.util.List<java.io.File> |
TranslationClassGenerator.findTranslationFiles(MessageInterface messageInterface) |
private void |
TranslationFileGenerator.generateDefaultTranslationFile(MessageInterface messageInterface)
Generates a default i18n properties file.
|
(package private) void |
TranslationFileGenerator.generateSkeletalTranslationFile(java.lang.String relativePath,
java.lang.String fileName,
MessageInterface messageInterface)
Generate the translation file containing the given
translations.
|
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.
|
void |
TranslationFileGenerator.processTypeElement(javax.lang.model.element.TypeElement annotation,
javax.lang.model.element.TypeElement element,
MessageInterface messageInterface) |
void |
ImplementationClassGenerator.processTypeElement(javax.lang.model.element.TypeElement annotation,
javax.lang.model.element.TypeElement element,
MessageInterface messageInterface) |
void |
TranslationClassGenerator.processTypeElement(javax.lang.model.element.TypeElement annotation,
javax.lang.model.element.TypeElement element,
MessageInterface messageInterface) |
abstract void |
AbstractGenerator.processTypeElement(javax.lang.model.element.TypeElement annotation,
javax.lang.model.element.TypeElement element,
MessageInterface messageInterface)
Processes a type element.
|
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 | Field and Description |
---|---|
private MessageInterface |
ClassModel.messageInterface |
Modifier and Type | Method and Description |
---|---|
MessageInterface |
ClassModel.messageInterface()
Returns the message interface being used.
|
Modifier and Type | Method and Description |
---|---|
static ClassModel |
ClassModelFactory.implementation(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
boolean useLogging31)
Creates an implementation code model from the message interface.
|
static java.lang.String |
ClassModelHelper.implementationClassName(MessageInterface messageInterface)
Creates the implementation class name for the message interface.
|
static java.lang.String |
ClassModelHelper.implementationClassName(MessageInterface messageInterface,
java.lang.String translationSuffix)
Creates the implementation class name for the message interface.
|
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 |
---|
ClassModel(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
java.lang.String className,
java.lang.String superClassName)
Construct a class model.
|
ImplementationClassModel(javax.annotation.processing.Filer filer,
MessageInterface messageInterface)
Class constructor.
|
MessageBundleImplementor(javax.annotation.processing.Filer filer,
MessageInterface messageInterface)
Creates a new message bundle code model.
|
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.
|
MessageLoggerImplementor(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
boolean useLogging31)
Creates a new message logger code model.
|
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.Set<MessageInterface> |
MessageInterface.extendedInterfaces()
A set of qualified interface names this interface extends or an empty set.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.Map<ValidIdRange,MessageInterface>> |
IdRangeValidator.processed |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<ValidIdRange,MessageInterface> |
IdRangeValidator.findAll(MessageInterface messageInterface) |
private java.util.Map<ValidIdRange,MessageInterface> |
IdRangeValidator.getProcessed(MessageInterface messageInterface) |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<ValidIdRange,MessageInterface> |
IdRangeValidator.findAll(MessageInterface messageInterface) |
private java.util.Set<MessageMethod> |
Validator.getAllMethods(MessageInterface messageInterface)
Finds all methods for the given interface, but ignores logger interface methods.
|
private java.util.Map<ValidIdRange,MessageInterface> |
IdRangeValidator.getProcessed(MessageInterface messageInterface) |
java.util.Collection<ValidationMessage> |
Validator.validate(MessageInterface messageInterface)
Validates the message interface and returns a collection of validation messages or an empty collection.
|
java.util.Collection<ValidationMessage> |
IdLengthValidator.validate(MessageInterface messageInterface) |
java.util.Collection<ValidationMessage> |
IdRangeValidator.validate(MessageInterface messageInterface) |
java.util.Collection<ValidationMessage> |
MessageIdValidator.validate(MessageInterface messageInterface,
MessageMethod messageMethod) |
private java.util.Collection<ValidationMessage> |
Validator.validateCommon(MessageInterface messageInterface,
java.util.Set<MessageMethod> messageMethods)
Validate common attributes to all interfaces.
|