org.mule.devkit.model
Interface Type
- All Superinterfaces:
- Accessible, Annotable, Documentable, Generifiable, Identifiable<TypeElement>, Typeable
- All Known Subinterfaces:
- EnumType, ManagedConnectionModule, Module, OAuthModule, RestModule
public interface Type
- extends Identifiable<TypeElement>, Typeable
Regular Java Type
| Methods inherited from interface org.mule.devkit.model.Typeable |
isArrayOrList, isBigDecimal, isBigInteger, isBoolean, isCalendar, isChar, isCollection, isComplexType, isComplexTypeWithGetterAndSetter, isDate, isDouble, isEnum, isFloat, isHttpCallback, isInteger, isLong, isMap, isNestedProcessor, isSet, isString, isURL, isXmlType |
getMethodsAnnotatedWith
List<Method<Type>> getMethodsAnnotatedWith(Class<? extends Annotation> annotation)
getFields
List<Field<Type>> getFields()
getMethods
List<Method<Type>> getMethods()
- Get all methods defined in this class
- Returns:
- A list containing all the methods defined in this class
hasNoArgConstructor
boolean hasNoArgConstructor()
isParametrized
boolean isParametrized()
hasFieldAnnotatedWith
boolean hasFieldAnnotatedWith(Class<? extends Annotation> annotation)
isInterface
boolean isInterface()
isPrimitive
boolean isPrimitive()
getPathToSourceFile
String getPathToSourceFile()
getPackage
Package getPackage()
getClassName
String getClassName()
getQualifiedName
Name getQualifiedName()
getPackageName
String getPackageName()
inheritsFrom
boolean inheritsFrom(Class clazz)
- Returns whether this type inherits from the provided class
- Parameters:
clazz - class to validate inheritance
- Returns:
- whether the type is subclass of the provided class or not
inheritsFrom
boolean inheritsFrom(Type type)
- Returns whether this type inherits from the provided type
- Parameters:
type - Type to validate inheritance
- Returns:
- whether the type is subclass of the provided class or not
getInheritedFields
List<Field<Type>> getInheritedFields()
getSuperClass
Type getSuperClass()
hasSuperClass
boolean hasSuperClass()
Copyright © 2010–2014 MuleSoft, Inc.. All rights reserved.