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 TypeMethodDescriptionint
boolean
The formatter class, ornull
if there is none.The element to delegate the default methods to.int
hashCode()
boolean
isArray()
Returnstrue
if the type is an array, otherwisefalse
.boolean
isAssignableFrom
(Class<?> type) Determines if this type is either the same as, or is a supertype of, the class represented by thetype
parameter.boolean
Indicates whether or not this parameter represents the message method.boolean
Returnstrue
if the type is a primitive type, otherwisefalse
.boolean
Determines if this type is the same type as the class represented by thetype
parameter.boolean
isSubtypeOf
(Class<?> type) Determines if this type is a subtype of the class represented by thetype
parameter.boolean
Returnstrue
if 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, wait
Methods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, asType, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWith
Methods inherited from interface org.jboss.logging.processor.model.Parameter
isFormatParameter
-
Field Details
-
messageMethod
-
-
Constructor Details
-
MessageMethodParameter
-
-
Method Details
-
getDelegate
Description copied from interface:DelegatingElement
The element to delegate the default methods to.- Specified by:
getDelegate
in interfaceDelegatingElement
- Returns:
- the delegate
-
formatterClass
Description copied from interface:Parameter
The formatter class, ornull
if there is none.- Specified by:
formatterClass
in interfaceParameter
- Returns:
- the formatter class
-
targetName
Description copied from interface:Parameter
Returns the name of the target field or method. For example if the parameter is annotated with@Field
the 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:
targetName
in interfaceParameter
- Returns:
- the target field name, method name or an empty string.
-
name
Description copied from interface:Parameter
The variable name of the parameter. -
isArray
public boolean isArray()Description copied from interface:Parameter
Returnstrue
if the type is an array, otherwisefalse
. -
isPrimitive
public boolean isPrimitive()Description copied from interface:Parameter
Returnstrue
if the type is a primitive type, otherwisefalse
.- Specified by:
isPrimitive
in interfaceParameter
- Returns:
true
if primitive type, otherwisefalse
-
isVarArgs
public boolean isVarArgs()Description copied from interface:Parameter
Returnstrue
if the parameter is a var args parameter, otherwisefalse
. -
isMessageMethod
public boolean isMessageMethod()Description copied from interface:Parameter
Indicates whether or not this parameter represents the message method.- Specified by:
isMessageMethod
in interfaceParameter
- Returns:
true
if this is the message method parameter
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Parameter>
-
toString
-
isAssignableFrom
Description copied from interface:ClassType
Determines if this type is either the same as, or is a supertype of, the class represented by thetype
parameter. If this type is assignable from the classtrue
is returned, otherwisefalse
.- Specified by:
isAssignableFrom
in interfaceClassType
- Parameters:
type
- the class type to check.- Returns:
true
if this type is the same as or a superclass of the class, otherwisefalse
.
-
isSubtypeOf
Description copied from interface:ClassType
Determines if this type is a subtype of the class represented by thetype
parameter. If this type is a subtype of the classtrue
is returned, otherwisefalse
.- Specified by:
isSubtypeOf
in interfaceClassType
- Parameters:
type
- the class type to check.- Returns:
true
if this type is a subtype of the class, otherwisefalse
.
-
isSameAs
Description copied from interface:ClassType
Determines if this type is the same type as the class represented by thetype
parameter. If this type is the same type as the classtrue
is returned, otherwisefalse
.
-