Class ClassInformationAnnotation
- java.lang.Object
-
- org.mule.metadata.java.api.annotation.ClassInformationAnnotation
-
- All Implemented Interfaces:
TypeAnnotation,CustomCopySerialization
public class ClassInformationAnnotation extends Object implements TypeAnnotation, CustomCopySerialization
-
-
Field Summary
Fields Modifier and Type Field Description static StringINTERNAL_METADATA_PACKAGEClasses from this packages contain information that is handled internally by the runtime and must not be exposed in the extension model.static StringNAME
-
Constructor Summary
Constructors Constructor Description ClassInformationAnnotation(Class<?> clazz)ClassInformationAnnotation(Class<?> clazz, List<Type> genericTypes)ClassInformationAnnotation(String classname, boolean hasDefaultConstructor, boolean isInterface, boolean isInstantiable, boolean isAbstract, boolean isFinal, List<String> implementedInterfaces, String parent, List<String> genericTypes, boolean isMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetClassname()List<String>getGenericTypes()List<String>getImplementedInterfaces()StringgetName()static StringgetName(Class<?> clazz)to correct getName()Optional<String>getParent()booleanhasDefaultConstructor()inthashCode()booleanisAbstract()booleanisFinal()booleanisInstantiable()booleanisInterface()booleanisMap()TypeAnnotationserializationCopy()Create a copy of this object but removing all the internal java classes from the implemented interfaces list.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mule.metadata.api.annotation.TypeAnnotation
isPublic
-
-
-
-
Field Detail
-
INTERNAL_METADATA_PACKAGE
public static final String INTERNAL_METADATA_PACKAGE
Classes from this packages contain information that is handled internally by the runtime and must not be exposed in the extension model.- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClassInformationAnnotation
public ClassInformationAnnotation(String classname, boolean hasDefaultConstructor, boolean isInterface, boolean isInstantiable, boolean isAbstract, boolean isFinal, List<String> implementedInterfaces, String parent, List<String> genericTypes, boolean isMap)
-
ClassInformationAnnotation
public ClassInformationAnnotation(Class<?> clazz)
-
-
Method Detail
-
getName
public static String getName(Class<?> clazz)
to correct getName()- Parameters:
clazz-- Returns:
-
serializationCopy
public TypeAnnotation serializationCopy()
Create a copy of this object but removing all the internal java classes from the implemented interfaces list.- Specified by:
serializationCopyin interfaceCustomCopySerialization- Returns:
- a copy of this object.
-
getName
public String getName()
- Specified by:
getNamein interfaceTypeAnnotation
-
getClassname
public String getClassname()
-
isInstantiable
public boolean isInstantiable()
-
isInterface
public boolean isInterface()
-
isFinal
public boolean isFinal()
-
isAbstract
public boolean isAbstract()
-
isMap
public boolean isMap()
-
hasDefaultConstructor
public boolean hasDefaultConstructor()
-
-