Package org.jboss.logging.processor.apt
Class ParameterFactory.MessageMethodParameter
java.lang.Object
org.jboss.logging.processor.apt.ParameterFactory.MessageMethodParameter
- All Implemented Interfaces:
Comparable<Parameter>,AnnotatedConstruct,Element,ClassType,DelegatingElement,Parameter
- Enclosing class:
ParameterFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanThe formatter class, ornullif there is none.The element to delegate the default methods to.inthashCode()booleanisArray()Returnstrueif the type is an array, otherwisefalse.booleanisAssignableFrom(Class<?> type) Determines if this type is either the same as, or is a supertype of, the class represented by thetypeparameter.booleanIndicates whether or not this parameter represents the message method.booleanReturnstrueif the type is a primitive type, otherwisefalse.booleanDetermines if this type is the same type as the class represented by thetypeparameter.booleanisSubtypeOf(Class<?> type) Determines if this type is a subtype of the class represented by thetypeparameter.booleanReturnstrueif the parameter is a var args parameter, otherwisefalse.name()The variable name of the parameter.Returns the name of the target field or method.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, asType, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWithMethods inherited from interface org.jboss.logging.processor.model.Parameter
isFormatParameter
-
Field Details
-
messageMethod
-
-
Constructor Details
-
MessageMethodParameter
-
-
Method Details
-
getDelegate
Description copied from interface:DelegatingElementThe element to delegate the default methods to.- Specified by:
getDelegatein interfaceDelegatingElement- Returns:
- the delegate
-
formatterClass
Description copied from interface:ParameterThe formatter class, ornullif there is none.- Specified by:
formatterClassin interfaceParameter- Returns:
- the formatter class
-
targetName
Description copied from interface:ParameterReturns the name of the target field or method. For example if the parameter is annotated with@Fieldthe target name is the name of the field to set on thereturn type. If no target name is defined an empty String is returned.- Specified by:
targetNamein interfaceParameter- Returns:
- the target field name, method name or an empty string.
-
name
Description copied from interface:ParameterThe variable name of the parameter. -
isArray
public boolean isArray()Description copied from interface:ParameterReturnstrueif the type is an array, otherwisefalse. -
isPrimitive
public boolean isPrimitive()Description copied from interface:ParameterReturnstrueif the type is a primitive type, otherwisefalse.- Specified by:
isPrimitivein interfaceParameter- Returns:
trueif primitive type, otherwisefalse
-
isVarArgs
public boolean isVarArgs()Description copied from interface:ParameterReturnstrueif the parameter is a var args parameter, otherwisefalse. -
isMessageMethod
public boolean isMessageMethod()Description copied from interface:ParameterIndicates whether or not this parameter represents the message method.- Specified by:
isMessageMethodin interfaceParameter- Returns:
trueif this is the message method parameter
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Parameter>
-
toString
-
isAssignableFrom
Description copied from interface:ClassTypeDetermines if this type is either the same as, or is a supertype of, the class represented by thetypeparameter. If this type is assignable from the classtrueis returned, otherwisefalse.- Specified by:
isAssignableFromin interfaceClassType- Parameters:
type- the class type to check.- Returns:
trueif this type is the same as or a superclass of the class, otherwisefalse.
-
isSubtypeOf
Description copied from interface:ClassTypeDetermines if this type is a subtype of the class represented by thetypeparameter. If this type is a subtype of the classtrueis returned, otherwisefalse.- Specified by:
isSubtypeOfin interfaceClassType- Parameters:
type- the class type to check.- Returns:
trueif this type is a subtype of the class, otherwisefalse.
-
isSameAs
Description copied from interface:ClassTypeDetermines if this type is the same type as the class represented by thetypeparameter. If this type is the same type as the classtrueis returned, otherwisefalse.
-