private static class MessageInterfaceFactory.AptMessageInterface extends AbstractMessageObjectType implements MessageInterface
MessageInterface.AnnotatedType| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<MessageInterface> |
extendedInterfaces |
private java.lang.String |
fqcn |
private int |
idLen |
private javax.lang.model.element.TypeElement |
interfaceElement |
private java.util.List<MessageMethod> |
messageMethods |
private java.lang.String |
packageName |
private java.lang.String |
projectCode |
private java.lang.String |
qualifiedName |
private java.lang.String |
simpleName |
private java.util.List<ValidIdRange> |
validIdRanges |
elements, typeMirror, types| Modifier | Constructor and Description |
|---|---|
private |
AptMessageInterface(javax.lang.model.element.TypeElement interfaceElement,
javax.lang.model.util.Types types,
javax.lang.model.util.Elements elements) |
| 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.
|
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.lang.String |
type()
Returns the qualified type name of the object.
|
java.util.List<ValidIdRange> |
validIdRanges()
Returns a list of
valid id ranges. |
isAssignableFrom, isSameAs, isSubtypeOfclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAssignableFrom, isSameAs, isSubtypeOfprivate final javax.lang.model.element.TypeElement interfaceElement
private final java.util.Set<MessageInterface> extendedInterfaces
private final java.util.List<MessageMethod> messageMethods
private final java.util.List<ValidIdRange> validIdRanges
private java.lang.String projectCode
private java.lang.String packageName
private java.lang.String simpleName
private java.lang.String qualifiedName
private java.lang.String fqcn
private int idLen
private AptMessageInterface(javax.lang.model.element.TypeElement interfaceElement,
javax.lang.model.util.Types types,
javax.lang.model.util.Elements elements)
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.lang.String name()
MessageInterfacename in interface MessageInterfacename in interface MessageObjectpublic java.util.Set<MessageInterface> extendedInterfaces()
MessageInterfaceextendedInterfaces in interface MessageInterfacepublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.Collection<MessageMethod> methods()
MessageInterfacemethods in interface MessageInterfacepublic int compareTo(MessageInterface o)
compareTo in interface java.lang.Comparable<MessageInterface>public java.lang.String projectCode()
MessageInterfacenull if MessageInterface.getAnnotatedType() returns MessageInterface.AnnotatedType.NONE.projectCode in interface MessageInterfacenull if MessageInterface.getAnnotatedType() returns MessageInterface.AnnotatedType.NONEprivate void init()
public java.lang.String type()
MessageObjectTypeObject.class.getName()type in interface MessageObjectTypetype in class AbstractMessageObjectTypepublic java.lang.String packageName()
MessageInterfacepackageName in interface MessageInterfacepublic java.lang.String getComment()
JavaDocCommentnull if there are no JavaDoc's present.getComment in interface JavaDocCommentnull.public 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 boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic javax.lang.model.element.TypeElement reference()
MessageObjectExecutableElement
might be returned.reference in interface MessageObject