|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.logging.generator.MethodDescriptor
public class MethodDescriptor
| Method Summary | |
|---|---|
MethodParameter |
cause()
Returns the cause element if there is one, otherwise null. |
int |
compareTo(MethodDescriptor o)
This comparison does not directly adhere to the general contract in that it does not honor the equals()
and hashCode() contracts. |
boolean |
equals(Object obj)
|
boolean |
hasCause()
Returns true if there is a cause element, otherwise false
. |
int |
hashCode()
|
boolean |
hasMessageId()
Returns true if the method has a message id, otherwise false, |
boolean |
isLoggerMethod()
Returns true if this is a logger method, otherwise false. |
boolean |
isOverloaded()
Returns true if the method is overloaded, otherwise false
. |
String |
loggerMethod()
Returns the LogMessage annotation associated with this method. |
String |
logLevelParameter()
Returns the log level parameter associated with the method. |
Annotations.FormatType |
messageFormat()
Returns the message format. |
int |
messageId()
Returns the id of the message. |
String |
messageMethodName()
Returns the name of the method used to retrieve the message. |
String |
messageValue()
Returns the Message annotation associated with this method. |
String |
name()
Returns the method name. |
protected static MethodDescriptor |
of(MethodDescriptors parent,
ExecutableElement method)
Create the method descriptor. |
int |
parameterCount()
Returns the number of all parameters for the method. |
Collection<MethodParameter> |
parameters()
Returns an unmodifiable collection of the parameters. |
int |
relativeParameterCount()
Returns the number of parameters minus the cause parameter count for the method. |
ReturnType |
returnType()
Returns the return type descriptor. |
String |
toString()
|
String |
translationKey()
Returns the name of the key used in the translation files for the message translation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
protected static MethodDescriptor of(MethodDescriptors parent,
ExecutableElement method)
parent - the method descriptor collection.method - the method to describe.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic int compareTo(MethodDescriptor o)
equals()
and hashCode() contracts.
The intention of this is for sorting only. Probably better suited for java.lang.Comparator, but for state
safety comparing is safer internally.
compareTo in interface Comparable<MethodDescriptor>Comparable.compareTo(java.lang.Object)public boolean hasMessageId()
true if the method has a message id, otherwise false,
true if the method has a message id, otherwise false,public Annotations.FormatType messageFormat()
public String messageValue()
public int messageId()
public String messageMethodName()
public String translationKey()
public String name()
public boolean hasCause()
true if there is a cause element, otherwise false
.
true if there is a cause element, otherwise falsepublic boolean isOverloaded()
true if the method is overloaded, otherwise false
.
true if the method is overloaded, otherwise falsepublic MethodParameter cause()
null.
null.public ReturnType returnType()
public String loggerMethod()
public String logLevelParameter()
public Collection<MethodParameter> parameters()
public int parameterCount()
public int relativeParameterCount()
public boolean isLoggerMethod()
true if this is a logger method, otherwise false.
true if this is a logger method, otherwise false.
|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||