Interface Parameter
-
- All Superinterfaces:
javax.lang.model.AnnotatedConstruct,ClassType,java.lang.Comparable<Parameter>,DelegatingElement,javax.lang.model.element.Element
- All Known Implementing Classes:
ParameterFactory.AptParameter,ParameterFactory.MessageMethodParameter
public interface Parameter extends java.lang.Comparable<Parameter>, ClassType, DelegatingElement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringformatterClass()The formatter class, ornullif there is none.booleanisArray()Returnstrueif the type is an array, otherwisefalse.default booleanisFormatParameter()Indicates whether or not the parameter is used a format parameter for the message.default booleanisMessageMethod()Indicates whether or not this parameter represents the message method.booleanisPrimitive()Returnstrueif the type is a primitive type, otherwisefalse.booleanisVarArgs()Returnstrueif the parameter is a var args parameter, otherwisefalse.java.lang.Stringname()The variable name of the parameter.java.lang.StringtargetName()Returns the name of the target field or method.-
Methods inherited from interface org.jboss.logging.processor.model.ClassType
isAssignableFrom, isSameAs, isSubtypeOf
-
Methods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, asType, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDelegate, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWith
-
-
-
-
Method Detail
-
name
java.lang.String name()
The variable name of the parameter.- Returns:
- the variable name of the parameter.
-
isArray
boolean isArray()
Returnstrueif the type is an array, otherwisefalse.- Returns:
trueif an array, otherwisefalse
-
isPrimitive
boolean isPrimitive()
Returnstrueif the type is a primitive type, otherwisefalse.- Returns:
trueif primitive type, otherwisefalse
-
isVarArgs
boolean isVarArgs()
Returnstrueif the parameter is a var args parameter, otherwisefalse.- Returns:
trueif var args parameter, otherwisefalse.
-
isFormatParameter
default boolean isFormatParameter()
Indicates whether or not the parameter is used a format parameter for the message.- Returns:
trueif this parameter that should used as a format parameter for the message
-
isMessageMethod
default boolean isMessageMethod()
Indicates whether or not this parameter represents the message method.- Returns:
trueif this is the message method parameter
-
formatterClass
java.lang.String formatterClass()
The formatter class, ornullif there is none.- Returns:
- the formatter class
-
targetName
java.lang.String targetName()
Returns 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.- Returns:
- the target field name, method name or an empty string.
-
-