public class MethodWrapper<T extends Type> extends Object implements MethodElement<T>
| Modifier and Type | Field and Description |
|---|---|
protected Method |
method |
protected org.mule.metadata.api.ClassTypeLoader |
typeLoader |
| Constructor and Description |
|---|
MethodWrapper(Method method,
org.mule.metadata.api.ClassTypeLoader typeLoader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Retrieves an annotation of the
WithAnnotations component |
Optional<Class<?>> |
getDeclaringClass() |
Optional<ExecutableElement> |
getElement() |
T |
getEnclosingType() |
List<Type> |
getExceptionTypes() |
Optional<Method> |
getMethod() |
String |
getName()
Returns the component's name
|
List<ExtensionParameter> |
getParameterGroups() |
List<ExtensionParameter> |
getParameters() |
List<ExtensionParameter> |
getParametersAnnotatedWith(Class<? extends Annotation> annotationClass) |
Type |
getReturnType() |
<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. |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAttributesMetadataType, getReturnMetadataTypegetAlias, getDescriptionisAnnotatedWithprotected final Method method
protected org.mule.metadata.api.ClassTypeLoader typeLoader
public MethodWrapper(Method method, org.mule.metadata.api.ClassTypeLoader typeLoader)
public Optional<Method> getMethod()
getMethod in interface MethodElement<T extends Type>public List<Type> getExceptionTypes()
getExceptionTypes in interface MethodElement<T extends Type>public T getEnclosingType()
getEnclosingType in interface MethodElement<T extends Type>OperationContainerElement which contains the current MethodElementpublic Optional<ExecutableElement> getElement()
getElement in interface MethodElement<T extends Type>getElement in interface WithElementOptional Element representing the component that implements this interface.public Optional<Class<?>> getDeclaringClass()
getDeclaringClass in interface WithDeclaringClassType representspublic List<ExtensionParameter> getParameters()
getParameters in interface WithParametersExtensionParameter that represents the parameters of the componentpublic List<ExtensionParameter> getParameterGroups()
getParameterGroups in interface WithParametersExtensionParameter that represents the parameters of the component that are considered as parameter
groupspublic List<ExtensionParameter> getParametersAnnotatedWith(Class<? extends Annotation> annotationClass)
getParametersAnnotatedWith in interface WithParametersannotationClass - Annotation to look for parameters annotated with this classExtensionParameter that are annotated with the given Annotation Classpublic String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectStringpublic <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 Type getReturnType()
Type of the implementer componentCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.