|
JBoss Logging I18n Annotation Processor 1.0.3.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.logging.processor.apt.AptHelperImpl
public class AptHelperImpl
Date: 24.08.2011
Constructor Summary | |
---|---|
AptHelperImpl()
|
Method Summary | |
---|---|
boolean |
hasMessageId(ExecutableElement method)
Checks to see if the method has a message id. |
boolean |
inheritsMessageId(ExecutableElement method)
Checks to see if the method should inherit the message id from a different method if applicable. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AptHelperImpl()
Method Detail |
---|
public Annotations.FormatType messageFormat(ExecutableElement method)
AptHelper
messageFormat
in interface AptHelper
method
- the method with the Message annotation.
null
if the format type
was not found.public String projectCode(TypeElement intf)
AptHelper
projectCode
in interface AptHelper
intf
- the interface to find the project code on.
null
if one was not found.public boolean hasMessageId(ExecutableElement method)
AptHelper
hasMessageId
in interface AptHelper
method
- the method to check.
true
if the message id was found, otherwise false
.public boolean inheritsMessageId(ExecutableElement method)
AptHelper
inheritsMessageId
in interface AptHelper
method
- the method to check.
true
if the message id should be inherited, otherwise false
.public int messageId(ExecutableElement method)
AptHelper
messageId
in interface AptHelper
method
- the method to check.
public String messageValue(ExecutableElement method)
AptHelper
messageValue
in interface AptHelper
method
- the method to check.
null
is
returned.public String loggerMethod(Annotations.FormatType formatType)
AptHelper
loggerMethod
in interface AptHelper
formatType
- the format type for the method.
public String logLevel(ExecutableElement method)
AptHelper
logLevel
in interface AptHelper
method
- the method used to determine the log method.
public String targetName(VariableElement param)
AptHelper
Annotations.field()
or
Annotations.property()
an empty string should be returned.
If the parameter is annotated with Annotations.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.
targetName
in interface AptHelper
param
- the parameter to check for the annotation.
|
JBoss Logging I18n Annotation Processor 1.0.3.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |