public class FieldWrapper extends Object implements FieldElement
IMPLICIT_ARGUMENT_TYPES| Constructor and Description |
|---|
FieldWrapper(Field field,
org.mule.metadata.api.ClassTypeLoader typeLoader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlias() |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Retrieves an annotation of the
WithAnnotations component |
Optional<VariableElement> |
getElement() |
Optional<Field> |
getField() |
String |
getName()
Returns the component's name
|
String |
getOwnerDescription() |
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. |
int |
hashCode() |
void |
set(Object object,
Object value)
Sets the
value into the target instance |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDeclaringElementdefaultValue, isRequired, shouldBeAdvertisedgetDescriptionisAnnotatedWithpublic FieldWrapper(Field field, org.mule.metadata.api.ClassTypeLoader typeLoader)
public Optional<Field> getField()
getField in interface FieldElementFieldpublic void set(Object object, Object value)
FieldElementvalue into the target instanceset in interface FieldElementvalue - the value to setpublic 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 TypeWrapper getType()
TypeWrapper of the represented componentpublic String getAlias()
public String getOwnerDescription()
public <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 Optional<VariableElement> getElement()
getElement in interface ExtensionParametergetElement in interface WithElementOptional Element representing the component that implements this interface.Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.