public interface Parameter extends Comparable<Parameter>, MessageObjectType
Modifier and Type | Interface and Description |
---|---|
static class |
Parameter.ParameterType
The types of parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
formatterClass()
The formatter class, or
null if there is none. |
boolean |
isArray()
Returns
true if the type is an array, otherwise false . |
boolean |
isPrimitive()
Returns
true if the type is a primitive type, otherwise false . |
boolean |
isVarArgs()
Returns
true if the parameter is a var args parameter, otherwise false . |
String |
name()
The variable name of the parameter.
|
Class<?> |
paramClass()
Returns the class if the parameter is annotated with
Annotations.param() . |
Parameter.ParameterType |
parameterType()
Returns the
parameter type of the parameter. |
String |
targetName()
Returns the name of the target field or method.
|
String |
type()
The full type name of the parameter.
|
compareTo
isAssignableFrom, isSameAs, isSubtypeOf
reference
String type()
java.lang.String
if the parameter is a string. If the
parameter is a primitive, the primitive name is returned.type
in interface MessageObjectType
String name()
name
in interface MessageObject
boolean isArray()
true
if the type is an array, otherwise false
.true
if an array, otherwise false
boolean isPrimitive()
true
if the type is a primitive type, otherwise false
.true
if primitive type, otherwise false
boolean isVarArgs()
true
if the parameter is a var args parameter, otherwise false
.true
if var args parameter, otherwise false
.Parameter.ParameterType parameterType()
parameter type
of the parameter.String formatterClass()
null
if there is none.Class<?> paramClass()
Annotations.param()
.
If the annotation is not present, null
is returned.null
.String targetName()
parameterType()
returns
Parameter.ParameterType.FIELD
, the target name is the name of the field to set on the
return type
. If no target name is defined an empty String is returned.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.