public interface Type extends Identifiable<TypeElement>, Typeable
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName() |
List<Field<Type>> |
getFields() |
List<Field> |
getFieldsAnnotatedWith(Class<? extends Annotation> annotation)
Retrieve all fields annotated with the annotation class specified
|
<T extends Type> |
getFirstMethodAnnotatedWith(Class<? extends Annotation> anAnnotation) |
List<Field<Type>> |
getInheritedFields() |
List<Method<Type>> |
getMethods()
Get all methods defined in this class
|
List<Method<Type>> |
getMethodsAnnotatedWith(Class<? extends Annotation> annotation)
Retrieves a list of methods annotated with
annotation in the current module. |
Package |
getPackage() |
String |
getPackageName() |
String |
getPathToSourceFile() |
Name |
getQualifiedName() |
<T> List<T> |
getRecursivelyAnnotationProcessorMethodsAnnotatedWith(Class<? extends Annotation> annotation)
Retrieves a list of methods annotated with
annotation from the current module, and any of it parents. |
Method |
getRecursivelyFirstMethodAnnotatedWith(Class<? extends Annotation> anAnnotation) |
<T> List<T> |
getRecursivelyMethodsAnnotatedWith(Class<? extends Annotation> annotation) |
<T> List<T> |
getRecursivelyMethodsAnnotatedWith(Class<? extends Annotation> annotation,
AnnotationProcessorFactory factory)
Retrieves a list of methods annotated with
annotation from the current module, and any of it parents. |
Type |
getSuperClass() |
boolean |
hasFieldAnnotatedWith(Class<? extends Annotation> annotation) |
boolean |
hasNoArgConstructor() |
boolean |
hasSuperClass() |
boolean |
inheritsFrom(Class clazz)
Returns whether this type inherits from the provided class
|
boolean |
inheritsFrom(Type type)
Returns whether this type inherits from the provided type
|
boolean |
isDsqlQueryObject() |
boolean |
isInterface() |
boolean |
isParametrized() |
boolean |
isPrimitive() |
accept, asType, asTypeMirror, getName, isReservedIdentifier, unwrapgetAnnotation, getAnnotationMirrors, hasAnnotationgetJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getThrowsComment, hasJavaDocTagisAbstract, isFinal, isPrivate, isProtected, isPublic, isStaticgetTypeArguments, getXmlDeclaredChilds, hasTypeArgumentsisArrayOrList, isBigDecimal, isBigInteger, isBoolean, isByte, isCalendar, isChar, isCollection, isComplexType, isComplexTypeWithGetterAndSetter, isDate, isDouble, isEnum, isFloat, isHttpCallback, isInteger, isLong, isMap, isNestedProcessor, isSet, isShort, isString, isURL, isXmlTypeList<Method<Type>> getMethodsAnnotatedWith(Class<? extends Annotation> annotation)
annotation in the current module. This means that if the parent
of the current module has more methods with the same annotation, it will not be retrieved.annotation - The annotation class to discriminate the methodsList<Field> getFieldsAnnotatedWith(Class<? extends Annotation> annotation)
annotation - <T extends Type> Method<T> getFirstMethodAnnotatedWith(Class<? extends Annotation> anAnnotation)
<T> List<T> getRecursivelyAnnotationProcessorMethodsAnnotatedWith(Class<? extends Annotation> annotation)
annotation from the current module, and any of it parents.annotation - The annotation class to discriminate the methods<T> List<T> getRecursivelyMethodsAnnotatedWith(Class<? extends Annotation> annotation, AnnotationProcessorFactory factory)
annotation from the current module, and any of it parents.annotation - The annotation class to discriminate the methodsfactory - a factory to instantiate AnnotationProcessorsfactory instantiates) annotated with the parameter annotationMethod getRecursivelyFirstMethodAnnotatedWith(Class<? extends Annotation> anAnnotation)
List<Method<Type>> getMethods()
boolean hasNoArgConstructor()
boolean isParametrized()
boolean hasFieldAnnotatedWith(Class<? extends Annotation> annotation)
boolean isInterface()
boolean isPrimitive()
String getPathToSourceFile()
Package getPackage()
String getClassName()
Name getQualifiedName()
String getPackageName()
boolean inheritsFrom(Class clazz)
clazz - class to validate inheritanceboolean inheritsFrom(Type type)
type - Type to validate inheritanceType getSuperClass()
boolean hasSuperClass()
boolean isDsqlQueryObject()
<T> List<T> getRecursivelyMethodsAnnotatedWith(Class<? extends Annotation> annotation)
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.