public class ReflectionParameter extends Object implements IParameterModel
ReflectionParameter class.
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationModel[] |
model |
protected ReflectionType |
type |
| Constructor and Description |
|---|
ReflectionParameter(Class<?> cl,
Annotation[] annotations)
Constructor for ReflectionParameter.
|
ReflectionParameter(ReflectionType type,
AnnotationModel[] model)
Constructor for ReflectionParameter.
|
| Modifier and Type | Method and Description |
|---|---|
IAnnotationModel |
getAnnotation(String name)
getAnnotation.
|
IAnnotationModel[] |
getAnnotations()
getAnnotations.
|
String |
getAnnotationValue(String annotation)
getAnnotationValue.
|
String[] |
getAnnotationValues(String annotation)
getAnnotationValues.
|
String |
getDocumentation()
getDocumentation.
|
String |
getName()
getName.
|
String |
getType()
Getter for the field
type. |
boolean |
hasAnnotation(String name)
hasAnnotation.
|
boolean |
required()
required.
|
protected ReflectionType type
protected AnnotationModel[] model
public ReflectionParameter(ReflectionType type, AnnotationModel[] model)
Constructor for ReflectionParameter.
type - a ReflectionType object.model - an array of AnnotationModel objects.public ReflectionParameter(Class<?> cl, Annotation[] annotations)
Constructor for ReflectionParameter.
cl - a Class object.annotations - an array of Annotation objects.public String getDocumentation()
getDocumentation.
getDocumentation in interface IBasicModelString object.public String getAnnotationValue(String annotation)
getAnnotationValue.
getAnnotationValue in interface IBasicModelannotation - a String object.public String[] getAnnotationValues(String annotation)
getAnnotationValues.
getAnnotationValues in interface IBasicModelannotation - a String object.public boolean hasAnnotation(String name)
hasAnnotation.
hasAnnotation in interface IBasicModelname - a String object.public IAnnotationModel getAnnotation(String name)
getAnnotation.
getAnnotation in interface IBasicModelname - a String object.IAnnotationModel for annotation with given name if present, null otherwisepublic String getName()
getName.
getName in interface IBasicModelString object.public String getType()
Getter for the field type.
getType in interface IParameterModelString object.public boolean required()
required.
required in interface IParameterModelpublic IAnnotationModel[] getAnnotations()
getAnnotations.
getAnnotations in interface IBasicModelIAnnotationModel objects.Copyright © 2015 Mulesoft. All rights reserved.