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, isSubtypeOf
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isAssignableFrom, isSameAs, isSubtypeOf
private 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()
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.lang.String name()
MessageInterface
name
in interface MessageInterface
name
in interface MessageObject
public java.util.Set<MessageInterface> extendedInterfaces()
MessageInterface
extendedInterfaces
in interface MessageInterface
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Collection<MessageMethod> methods()
MessageInterface
methods
in interface MessageInterface
public int compareTo(MessageInterface o)
compareTo
in interface java.lang.Comparable<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
private void init()
public java.lang.String type()
MessageObjectType
Object.class.getName()
type
in interface MessageObjectType
type
in class AbstractMessageObjectType
public java.lang.String packageName()
MessageInterface
packageName
in interface MessageInterface
public java.lang.String getComment()
JavaDocComment
null
if there are no JavaDoc's present.getComment
in interface JavaDocComment
null
.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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public javax.lang.model.element.TypeElement reference()
MessageObject
ExecutableElement
might be returned.reference
in interface MessageObject