Package org.jboss.logging.processor.apt
Class MessageInterfaceFactory.LoggerInterface
java.lang.Object
org.jboss.logging.processor.apt.AbstractClassType
org.jboss.logging.processor.apt.MessageInterfaceFactory.LoggerInterface
- All Implemented Interfaces:
Comparable<MessageInterface>,AnnotatedConstruct,Element,Parameterizable,QualifiedNameable,TypeElement,ClassType,DelegatingElement,DelegatingTypeElement,JavaDocComment,MessageInterface
- Enclosing class:
MessageInterfaceFactory
private static class MessageInterfaceFactory.LoggerInterface
extends AbstractClassType
implements MessageInterface
-
Field Summary
FieldsFields inherited from class org.jboss.logging.processor.apt.AbstractClassType
elements, processingEnv, typeMirror, types -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLoggerInterface(ProcessingEnvironment processingEnv, TypeElement loggerInterface) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanA set of qualified interface names this interface extends or an empty set.booleanChecks the interface to see if thelogger interfaceis being extended in this interface.The JavaDoc comments if available ornullif there are no JavaDoc's present.The element to delegate the default methods to.intThe length to pad the id with.inthashCode()private voidinit()The fully qualified class name to use for log methods.methods()A collection of all the methods this interface needs to implement.name()The qualified name of the message interface.(package private) static MessageInterfaceFactory.LoggerInterfaceof(ProcessingEnvironment processingEnv) The package name of the message interface.The project code for the message interface ornullif not annotated with@MessageBundleor@MessageLogger.The name of the interface without the package.toString()Returns a list ofvalid id ranges.Methods inherited from class org.jboss.logging.processor.apt.AbstractClassType
isAssignableFrom, isSameAs, isSubtypeOfMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.logging.processor.model.ClassType
isAssignableFrom, isSameAs, isSubtypeOfMethods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getKind, getModifiers, isAnnotatedWithMethods inherited from interface org.jboss.logging.processor.model.DelegatingTypeElement
asType, getEnclosedElements, getEnclosingElement, getInterfaces, getNestingKind, getQualifiedName, getSimpleName, getSuperclass, getTypeParametersMethods inherited from interface org.jboss.logging.processor.model.MessageInterface
expressionProperties, generatedAnnotation
-
Field Details
-
loggerInterface
-
messageMethods
-
-
Constructor Details
-
LoggerInterface
-
-
Method Details
-
init
private void init() -
of
-
extendsLoggerInterface
public boolean extendsLoggerInterface()Description copied from interface:MessageInterfaceChecks the interface to see if thelogger interfaceis being extended in this interface.- Specified by:
extendsLoggerInterfacein interfaceMessageInterface- Returns:
trueif this interface extends the logger interface, otherwisefalse.
-
extendedInterfaces
Description copied from interface:MessageInterfaceA set of qualified interface names this interface extends or an empty set.- Specified by:
extendedInterfacesin interfaceMessageInterface- Returns:
- a set of interface names or an empty set.
-
methods
Description copied from interface:MessageInterfaceA collection of all the methods this interface needs to implement.- Specified by:
methodsin interfaceMessageInterface- Returns:
- a collection of methods.
-
projectCode
Description copied from interface:MessageInterfaceThe project code for the message interface ornullif not annotated with@MessageBundleor@MessageLogger.- Specified by:
projectCodein interfaceMessageInterface- Returns:
- the project code or
nullif not annotated with@MessageBundleor@MessageLogger
-
name
Description copied from interface:MessageInterfaceThe qualified name of the message interface.- Specified by:
namein interfaceMessageInterface- Returns:
- the qualified name.
-
packageName
Description copied from interface:MessageInterfaceThe package name of the message interface.- Specified by:
packageNamein interfaceMessageInterface- Returns:
- the package name.
-
simpleName
Description copied from interface:MessageInterfaceThe name of the interface without the package.- Specified by:
simpleNamein interfaceMessageInterface- Returns:
- the simple interface name.
-
loggingFQCN
Description copied from interface:MessageInterfaceThe fully qualified class name to use for log methods. This will generally be the same result asMessageInterface.name().- Specified by:
loggingFQCNin interfaceMessageInterface- Returns:
- the fully qualified class name to use for logging.
-
validIdRanges
Description copied from interface:MessageInterfaceReturns a list ofvalid id ranges.- Specified by:
validIdRangesin interfaceMessageInterface- Returns:
- a list of valid id ranges or an empty list
-
getIdLength
public int getIdLength()Description copied from interface:MessageInterfaceThe length to pad the id with. A value of less than 0 indicates no padding.- Specified by:
getIdLengthin interfaceMessageInterface- Returns:
- the length to pad the id with
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<MessageInterface>
-
toString
-
getComment
Description copied from interface:JavaDocCommentThe JavaDoc comments if available ornullif there are no JavaDoc's present.- Specified by:
getCommentin interfaceJavaDocComment- Returns:
- the JavaDoc comments or
null.
-
getDelegate
Description copied from interface:DelegatingElementThe element to delegate the default methods to.- Specified by:
getDelegatein interfaceDelegatingElement- Specified by:
getDelegatein interfaceDelegatingTypeElement- Returns:
- the delegate
-