private static class MessageInterfaceFactory.LoggerInterface extends AbstractMessageObjectType implements MessageInterface
MessageInterface.AnnotatedType
Modifier and Type | Field and Description |
---|---|
private javax.lang.model.element.TypeElement |
loggerInterface |
private java.util.Set<MessageMethod> |
messageMethods |
elements, typeMirror, types
Modifier | Constructor and Description |
---|---|
private |
LoggerInterface(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MessageInterface o) |
boolean |
equals(java.lang.Object obj) |
java.util.Set<MessageInterface> |
extendedInterfaces()
A set of qualified interface names this interface extends or an empty set.
|
boolean |
extendsLoggerInterface()
Checks the interface to see if the
logger interface is being extended in
this interface. |
MessageInterface.AnnotatedType |
getAnnotatedType()
Returns the annotation type on the interface.
|
java.lang.String |
getComment()
The JavaDoc comments if available or
null if there are no JavaDoc's present. |
int |
getIdLength()
The length to pad the id with.
|
int |
hashCode() |
private void |
init() |
java.lang.String |
loggingFQCN()
The fully qualified class name to use for log methods.
|
java.util.Collection<MessageMethod> |
methods()
A collection of all the methods this interface needs to implement.
|
java.lang.String |
name()
The qualified name of the message interface.
|
(package private) static MessageInterfaceFactory.LoggerInterface |
of(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types) |
java.lang.String |
packageName()
The package name of the message interface.
|
java.lang.String |
projectCode()
The project code for the message interface or
null if MessageInterface.getAnnotatedType() returns MessageInterface.AnnotatedType.NONE . |
javax.lang.model.element.TypeElement |
reference()
The object used to extract information for the message logger or message bundle, if applicable.
|
java.lang.String |
simpleName()
The name of the interface without the package.
|
java.lang.String |
toString() |
java.util.List<ValidIdRange> |
validIdRanges()
Returns a list of
valid id ranges . |
isAssignableFrom, isSameAs, isSubtypeOf, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isAssignableFrom, isSameAs, isSubtypeOf, type
private final javax.lang.model.element.TypeElement loggerInterface
private final java.util.Set<MessageMethod> messageMethods
private LoggerInterface(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types)
private void init()
static MessageInterfaceFactory.LoggerInterface of(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types)
public boolean extendsLoggerInterface()
MessageInterface
logger interface
is being extended in
this interface.extendsLoggerInterface
in interface MessageInterface
true
if this interface extends the logger interface, otherwise false
.public java.util.Set<MessageInterface> extendedInterfaces()
MessageInterface
extendedInterfaces
in interface MessageInterface
public java.util.Collection<MessageMethod> methods()
MessageInterface
methods
in interface MessageInterface
public java.lang.String projectCode()
MessageInterface
null
if MessageInterface.getAnnotatedType()
returns MessageInterface.AnnotatedType.NONE
.projectCode
in interface MessageInterface
null
if MessageInterface.getAnnotatedType()
returns MessageInterface.AnnotatedType.NONE
public java.lang.String name()
MessageInterface
name
in interface MessageInterface
name
in interface MessageObject
public java.lang.String packageName()
MessageInterface
packageName
in interface MessageInterface
public java.lang.String simpleName()
MessageInterface
simpleName
in interface MessageInterface
public java.lang.String loggingFQCN()
MessageInterface
MessageInterface.name()
.loggingFQCN
in interface MessageInterface
public MessageInterface.AnnotatedType getAnnotatedType()
MessageInterface
getAnnotatedType
in interface MessageInterface
public java.util.List<ValidIdRange> validIdRanges()
MessageInterface
valid id ranges
.validIdRanges
in interface MessageInterface
public int getIdLength()
MessageInterface
getIdLength
in interface MessageInterface
public javax.lang.model.element.TypeElement reference()
MessageObject
ExecutableElement
might be returned.reference
in interface MessageObject
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(MessageInterface o)
compareTo
in interface java.lang.Comparable<MessageInterface>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getComment()
JavaDocComment
null
if there are no JavaDoc's present.getComment
in interface JavaDocComment
null
.