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, typeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAssignableFrom, isSameAs, isSubtypeOf, typeprivate 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()
MessageInterfacelogger interface is being extended in
this interface.extendsLoggerInterface in interface MessageInterfacetrue if this interface extends the logger interface, otherwise false.public java.util.Set<MessageInterface> extendedInterfaces()
MessageInterfaceextendedInterfaces in interface MessageInterfacepublic java.util.Collection<MessageMethod> methods()
MessageInterfacemethods in interface MessageInterfacepublic java.lang.String projectCode()
MessageInterfacenull if MessageInterface.getAnnotatedType() returns MessageInterface.AnnotatedType.NONE.projectCode in interface MessageInterfacenull if MessageInterface.getAnnotatedType() returns MessageInterface.AnnotatedType.NONEpublic java.lang.String name()
MessageInterfacename in interface MessageInterfacename in interface MessageObjectpublic java.lang.String packageName()
MessageInterfacepackageName in interface MessageInterfacepublic java.lang.String simpleName()
MessageInterfacesimpleName in interface MessageInterfacepublic java.lang.String loggingFQCN()
MessageInterfaceMessageInterface.name().loggingFQCN in interface MessageInterfacepublic MessageInterface.AnnotatedType getAnnotatedType()
MessageInterfacegetAnnotatedType in interface MessageInterfacepublic java.util.List<ValidIdRange> validIdRanges()
MessageInterfacevalid id ranges.validIdRanges in interface MessageInterfacepublic int getIdLength()
MessageInterfacegetIdLength in interface MessageInterfacepublic javax.lang.model.element.TypeElement reference()
MessageObjectExecutableElement
might be returned.reference in interface MessageObjectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(MessageInterface o)
compareTo in interface java.lang.Comparable<MessageInterface>public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getComment()
JavaDocCommentnull if there are no JavaDoc's present.getComment in interface JavaDocCommentnull.