Class MethodParameter
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.model.MethodParameter
-
public class MethodParameter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description StringdeclaredTypeGenerally this will be the same as type, unless the parameter is a collection, in which case 'type' will be the element type and this will be the collection typeStringdeclaredUnresolvedTypeThis will only be different from the declaredType if a TypeVariable was used.booleanencodedStringnameParameterTypeparameterTypeStringsignatureStringtype
-
Constructor Summary
Constructors Constructor Description MethodParameter()MethodParameter(String name, String type, String declaredType, String declaredUnresolvedType, String signature, ParameterType parameterType, boolean single, String defaultValue, boolean isObtainedAsCollection, boolean optional, boolean encoded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDeclaredType()StringgetDefaultValue()StringgetName()ParameterTypegetParameterType()StringgetType()inthashCode()booleanisObtainedAsCollection()booleanisOptional()booleanisSingle()MethodParametersetDeclaredType(String declaredType)MethodParametersetDefaultValue(String defaultValue)voidsetName(String name)MethodParametersetObtainedAsCollection(boolean isObtainedAsCollection)voidsetOptional(boolean optional)voidsetParameterType(ParameterType parameterType)MethodParametersetSingle(boolean single)voidsetType(String type)StringtoString()
-
-
-
Field Detail
-
name
public String name
-
type
public String type
-
declaredType
public String declaredType
Generally this will be the same as type, unless the parameter is a collection, in which case 'type' will be the element type and this will be the collection type
-
declaredUnresolvedType
public String declaredUnresolvedType
This will only be different from the declaredType if a TypeVariable was used. It is needed for proper reflection method lookups
-
signature
public String signature
-
parameterType
public ParameterType parameterType
-
encoded
public boolean encoded
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getParameterType
public ParameterType getParameterType()
-
setParameterType
public void setParameterType(ParameterType parameterType)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public MethodParameter setDefaultValue(String defaultValue)
-
isSingle
public boolean isSingle()
-
setSingle
public MethodParameter setSingle(boolean single)
-
getDeclaredType
public String getDeclaredType()
-
setDeclaredType
public MethodParameter setDeclaredType(String declaredType)
-
isObtainedAsCollection
public boolean isObtainedAsCollection()
-
isOptional
public boolean isOptional()
-
setOptional
public void setOptional(boolean optional)
-
setObtainedAsCollection
public MethodParameter setObtainedAsCollection(boolean isObtainedAsCollection)
-
-