@NoImplement public interface Type extends WithAnnotations, WithAlias, WithDeclaringClass, WithElement
| Modifier and Type | Method and Description |
|---|---|
org.mule.metadata.api.model.MetadataType |
asMetadataType() |
List<FieldElement> |
getAnnotatedFields(Class<? extends Annotation>... annotations) |
org.mule.metadata.java.api.annotation.ClassInformationAnnotation |
getClassInformation() |
Optional<TypeElement> |
getElement() |
List<FieldElement> |
getFields() |
List<TypeGeneric> |
getGenerics() |
default List<Type> |
getInterfaceGenerics(Class interfaceType)
Deprecated.
|
Optional<MethodElement> |
getMethod(String name,
Class<?>... parameterTypes) |
String |
getName()
Returns the component's name
|
List<PropertyElement> |
getProperties() |
Optional<Type> |
getSuperType()
Returns a
Type representing the class that this type directly extends. |
List<Type> |
getSuperTypeGenerics(Class superType) |
String |
getTypeName() |
boolean |
isAnyType() |
boolean |
isAssignableFrom(Class<?> clazz)
Checks the assignability of the current type from the given
Class |
boolean |
isAssignableFrom(Type type)
Checks the assignability of the current type from the given
Type |
boolean |
isAssignableTo(Class<?> clazz)
Checks the assignability of the current type to the given
Class |
boolean |
isAssignableTo(Type type)
Checks the assignability of the current type to the given
Type |
boolean |
isInstantiable() |
boolean |
isSameType(Class<?> clazz)
Checks equality of the current type to the given
Class |
boolean |
isSameType(Type type)
Checks equality of the current type to the given
Type |
getAlias, getDescriptiongetAnnotation, getValueFromAnnotation, isAnnotatedWithgetDeclaringClassList<FieldElement> getFields()
FieldElement that represent the list of Field that the Type declaresList<PropertyElement> getProperties()
FieldElement that represent the list of Field propertyes that the Type declaresList<FieldElement> getAnnotatedFields(Class<? extends Annotation>... annotations)
annotations - classes that the fields of this type should be annotated withFieldElement that represent the list of Field that the Type declares and are
annotated with the given annotationboolean isAssignableFrom(Class<?> clazz)
Classclazz - The class to checkboolean isAssignableFrom(Type type)
Typetype - The type to checkTypeboolean isAssignableTo(Class<?> clazz)
Classclazz - The class to checkboolean isAssignableTo(Type type)
Typetype - The type to checkTypeboolean isSameType(Type type)
Typetype - The type to check equalityboolean isSameType(Class<?> clazz)
Classclazz - The type to check equalityboolean isInstantiable()
List<TypeGeneric> getGenerics()
List<Type> getSuperTypeGenerics(Class superType)
superType - The Class with generics, this can be a Interface or a normal Class@Deprecated default List<Type> getInterfaceGenerics(Class interfaceType)
interfaceType - The Class with genericsorg.mule.metadata.api.model.MetadataType asMetadataType()
MetadataTypeString getTypeName()
Optional<Type> getSuperType()
Type representing the class that this type directly extends.
If either this or the resolved super type match the Object type then Optional.empty() is returnedorg.mule.metadata.java.api.annotation.ClassInformationAnnotation getClassInformation()
ClassInformationAnnotation describing the current Typeboolean isAnyType()
AnyTypeOptional<TypeElement> getElement()
getElement in interface WithElementOptional Element representing the component that implements this interface.Optional<MethodElement> getMethod(String name, Class<?>... parameterTypes)
name - parameterTypes - MethodElement if presentCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.