|
JBoss Logging I18n Annotation Processor 1.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Annotations
An interface used to extract information about the logging annotations.
| Nested Class Summary | |
|---|---|
static class |
Annotations.FormatType
The message format type. |
static interface |
Annotations.Void
A simple annotation to allow an annotation to be ignored. |
| Method Summary | |
|---|---|
String |
getFormatWithAnnotationName(VariableElement param)
Returns the name of the @FormatWith class. |
String |
getMessageLoggerAnnotationName(TypeElement element)
Returns the name of the @MessageLogger class. |
Set<String> |
getSupportedAnnotations()
Returns a set of the supported annotations. |
boolean |
hasCauseAnnotation(VariableElement param)
Checks to see if the parameter has a cause annotation. |
boolean |
hasFieldAnnotation(VariableElement param)
Checks to see if the parameter has a field annotation. |
boolean |
hasLoggingClassAnnotation(VariableElement param)
Checks to see if the parameter has a logging class annotation. |
boolean |
hasMessageAnnotation(ExecutableElement method)
Checks to see if the method is annotated with the message annotation. |
boolean |
hasMessageId(ExecutableElement method)
Checks to see if the method has a message id. |
boolean |
hasParamAnnotation(VariableElement param)
Checks to see if the parameter has a parameter annotation. |
boolean |
hasPropertyAnnotation(VariableElement param)
Checks to see if the parameter has a property annotation. |
boolean |
inheritsMessageId(ExecutableElement method)
Checks to see if the method should inherit the message id from a different method if applicable. |
boolean |
isLoggerMethod(ExecutableElement method)
Checks to see if the method is a logger method. |
boolean |
isMessageBundle(TypeElement element)
Checks the element to see it's a message bundle. |
boolean |
isMessageLogger(TypeElement element)
Checks the element to see it's a message logger. |
String |
loggerMethod(Annotations.FormatType formatType)
Returns the logger method name to use or an empty string if the method is not a logger method. |
String |
logLevel(ExecutableElement method)
Returns the log level enum. |
Annotations.FormatType |
messageFormat(ExecutableElement method)
Returns the method format type. |
int |
messageId(ExecutableElement method)
Returns the message id. |
String |
messageValue(ExecutableElement method)
Returns the message value for the method. |
String |
projectCode(TypeElement intf)
The project code from the interface. |
String |
targetName(VariableElement param)
Returns the target field or method name for the annotated parameter. |
| Method Detail |
|---|
Set<String> getSupportedAnnotations()
Annotations.FormatType messageFormat(ExecutableElement method)
method - the method with the Message annotation.
null if the format type
was not found.String projectCode(TypeElement intf)
intf - the interface to find the project code on.
null if one was not found.boolean hasCauseAnnotation(VariableElement param)
param - the parameter to check
true if the method has a cause annotation, otherwise falseboolean hasFieldAnnotation(VariableElement param)
param - the parameter to check
true if the method has a field annotation, otherwise falseboolean hasLoggingClassAnnotation(VariableElement param)
param - the parameter to check
true if the method has a logging class annotation, otherwise falseboolean hasMessageAnnotation(ExecutableElement method)
method - the method to check
true if the annotation was found, otherwise falseboolean hasMessageId(ExecutableElement method)
method - the method to check.
true if the message id was found, otherwise false.boolean hasParamAnnotation(VariableElement param)
param - the parameter to check
true if the method has a parameter annotation, otherwise falseboolean hasPropertyAnnotation(VariableElement param)
param - the parameter to check
true if the method has a property annotation, otherwise falseboolean inheritsMessageId(ExecutableElement method)
method - the method to check.
true if the message id should be inherited, otherwise false.boolean isLoggerMethod(ExecutableElement method)
method - the method to check
true if the method is a logger method, otherwise falseboolean isMessageBundle(TypeElement element)
element to see it's a message bundle.
element - the interface element
true if the interface is a message bundleboolean isMessageLogger(TypeElement element)
element to see it's a message logger.
element - the interface element
true if the interface is a message loggerString getFormatWithAnnotationName(VariableElement param)
@FormatWith class.
param - the parameter element
String getMessageLoggerAnnotationName(TypeElement element)
@MessageLogger class.
element - the interface element
int messageId(ExecutableElement method)
method - the method to check.
String messageValue(ExecutableElement method)
method - the method to check.
null is
returned.String loggerMethod(Annotations.FormatType formatType)
formatType - the format type for the method.
String logLevel(ExecutableElement method)
method - the method used to determine the log method.
String targetName(VariableElement param)
Field or
Property an empty string should be returned.
If the parameter is annotated with Property, the name should
be prepended with set. For example a property name of value should return setValue.
If the annotation does not have a defined value, the parameter name should be returned.
param - the parameter to check for the annotation.
|
JBoss Logging I18n Annotation Processor 1.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||