public class ReflectionParameter extends Object implements IParameterModel
ReflectionParameter class.
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationModel[] |
model |
protected String |
name |
protected ReflectionType |
type |
| Constructor and Description |
|---|
ReflectionParameter(Class<?> cl,
Annotation[] annotations,
String name)
Constructor for ReflectionParameter.
|
ReflectionParameter(ReflectionType type,
AnnotationModel[] model,
String name)
Constructor for ReflectionParameter.
|
| Modifier and Type | Method and Description |
|---|---|
IAnnotationModel |
getAnnotation(String name)
getAnnotation.
|
IAnnotationModel |
getAnnotationByCanonicalName(String name)
getAnnotation.
|
IAnnotationModel[] |
getAnnotations()
getAnnotations.
|
String |
getAnnotationValue(String annotation)
getAnnotationValue.
|
String[] |
getAnnotationValues(String annotation)
getAnnotationValues.
|
String |
getDocumentation()
getDocumentation.
|
String |
getName()
getName.
|
String |
getParameterType()
Getter for the field
type. |
boolean |
hasAnnotation(String name)
hasAnnotation.
|
boolean |
hasAnnotationWithCanonicalName(String name)
hasAnnotation.
|
boolean |
required()
required.
|
protected ReflectionType type
protected String name
protected AnnotationModel[] model
public ReflectionParameter(ReflectionType type, AnnotationModel[] model, String name)
Constructor for ReflectionParameter.
type - a ReflectionType object.model - an array of AnnotationModel objects.public ReflectionParameter(Class<?> cl, Annotation[] annotations, String name)
Constructor for ReflectionParameter.
cl - a Class object.annotations - an array of Annotation objects.name - 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 boolean hasAnnotationWithCanonicalName(String name)
hasAnnotation.
hasAnnotationWithCanonicalName in interface IBasicModelname - a String object.public IAnnotationModel getAnnotationByCanonicalName(String name)
getAnnotation.
getAnnotationByCanonicalName in interface IBasicModelname - a String object.IAnnotationModel for annotation with given canonical name if present, null otherwisepublic 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 getParameterType()
Getter for the field type.
getParameterType 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.