public final class ParameterWrapper extends Object implements ParameterElement
IMPLICIT_ARGUMENT_TYPES| Constructor and Description |
|---|
ParameterWrapper(Method owner,
int index,
org.mule.metadata.api.ClassTypeLoader typeLoader) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias() |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Retrieves an annotation of the
WithAnnotations component |
Optional<VariableElement> |
getElement() |
String |
getName()
Returns the component's name
|
String |
getOwnerDescription() |
Optional<Parameter> |
getParameter() |
TypeWrapper |
getType() |
<A extends Annotation> |
getValueFromAnnotation(Class<A> annotationClass)
Returns an optional
AnnotationValueFetcher which encapsulates the logic of obtaining annotations values
when executing with classes or with the Java AST. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeclaringElementdefaultValue, isRequired, shouldBeAdvertisedgetDescriptionisAnnotatedWithpublic ParameterWrapper(Method owner, int index, org.mule.metadata.api.ClassTypeLoader typeLoader)
public Optional<Parameter> getParameter()
getParameter in interface ParameterElementParameterpublic TypeWrapper getType()
TypeWrapper of the represented componentpublic <A extends Annotation> Optional<A> getAnnotation(Class<A> annotationClass)
WithAnnotations componentgetAnnotation in interface WithAnnotationsA - The annotation typeannotationClass - Of the annotation to retrieveOptional annotation to retrievepublic <A extends Annotation> Optional<AnnotationValueFetcher<A>> getValueFromAnnotation(Class<A> annotationClass)
WithAnnotationsAnnotationValueFetcher which encapsulates the logic of obtaining annotations values
when executing with classes or with the Java AST.getValueFromAnnotation in interface WithAnnotationsA - The annotation typeannotationClass - Of the annotation to retrieveOptional AnnotationValueFetcher to retrievepublic String getAlias()
public String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectStringpublic String getOwnerDescription()
public Optional<VariableElement> getElement()
getElement in interface ExtensionParametergetElement in interface WithElementOptional Element representing the component that implements this interface.Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.