public class AnnotationProcessorType extends AnnotationProcessorIdentifiable<TypeElement> implements Type
components, elements, innerElement, types
Constructor and Description |
---|
AnnotationProcessorType(TypeElement innerElement,
Types types,
Elements elements) |
AnnotationProcessorType(TypeElement innerElement,
Types types,
Elements elements,
List<Component> components) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ModelVisitor visitor) |
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 |
isArrayOrList() |
boolean |
isBigDecimal() |
boolean |
isBigInteger() |
boolean |
isBoolean() |
boolean |
isCalendar() |
boolean |
isChar() |
boolean |
isCollection() |
boolean |
isComplexType() |
boolean |
isComplexTypeWithGetterAndSetter(boolean checkGetterAndSetter) |
boolean |
isDate() |
boolean |
isDouble() |
boolean |
isDsqlQueryObject() |
boolean |
isEnum() |
boolean |
isFloat() |
boolean |
isHttpCallback() |
boolean |
isInteger() |
boolean |
isInterface() |
boolean |
isLong() |
boolean |
isMap() |
boolean |
isNestedProcessor() |
boolean |
isParametrized() |
boolean |
isPrimitive() |
boolean |
isSet() |
boolean |
isString() |
boolean |
isURL() |
boolean |
isXmlType() |
asType, asTypeMirror, equals, getAnnotation, getAnnotationFieldValue, getAnnotationMirrors, getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getName, getThrowsComment, getTypeArguments, getXmlDeclaredChilds, hasAnnotation, hashCode, hasJavaDocTag, hasTypeArguments, isAbstract, isFinal, isPrivate, isProtected, isPublic, isReservedIdentifier, isStatic, unwrap
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asType, asTypeMirror, getName, isReservedIdentifier, unwrap
getAnnotation, getAnnotationMirrors, hasAnnotation
getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getThrowsComment, hasJavaDocTag
isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic
getTypeArguments, getXmlDeclaredChilds, hasTypeArguments
public AnnotationProcessorType(TypeElement innerElement, Types types, Elements elements, List<Component> components)
public AnnotationProcessorType(TypeElement innerElement, Types types, Elements elements)
public boolean isParametrized()
isParametrized
in interface Type
public List<Field> getFieldsAnnotatedWith(Class<? extends Annotation> annotation)
Type
getFieldsAnnotatedWith
in interface Type
public List<Method<Type>> getMethodsAnnotatedWith(Class<? extends Annotation> annotation)
Type
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.getMethodsAnnotatedWith
in interface Type
annotation
- The annotation class to discriminate the methodspublic <T extends Type> Method<T> getFirstMethodAnnotatedWith(Class<? extends Annotation> anAnnotation)
getFirstMethodAnnotatedWith
in interface Type
public <T> List<T> getRecursivelyAnnotationProcessorMethodsAnnotatedWith(Class<? extends Annotation> annotation)
Type
annotation
from the current module, and any of it parents.getRecursivelyAnnotationProcessorMethodsAnnotatedWith
in interface Type
annotation
- The annotation class to discriminate the methodspublic <T> List<T> getRecursivelyMethodsAnnotatedWith(Class<? extends Annotation> annotation)
getRecursivelyMethodsAnnotatedWith
in interface Type
public <T> List<T> getRecursivelyMethodsAnnotatedWith(Class<? extends Annotation> annotation, AnnotationProcessorFactory factory)
Type
annotation
from the current module, and any of it parents.getRecursivelyMethodsAnnotatedWith
in interface Type
annotation
- The annotation class to discriminate the methodsfactory
- a factory to instantiate AnnotationProcessorsfactory
instantiates) annotated with the parameter annotation
public Method getRecursivelyFirstMethodAnnotatedWith(Class<? extends Annotation> anAnnotation)
getRecursivelyFirstMethodAnnotatedWith
in interface Type
public boolean hasFieldAnnotatedWith(Class<? extends Annotation> annotation)
hasFieldAnnotatedWith
in interface Type
public List<Field<Type>> getInheritedFields()
getInheritedFields
in interface Type
public Type getSuperClass()
getSuperClass
in interface Type
public boolean hasSuperClass()
hasSuperClass
in interface Type
public Package getPackage()
getPackage
in interface Type
public List<Method<Type>> getMethods()
Type
getMethods
in interface Type
public boolean hasNoArgConstructor()
hasNoArgConstructor
in interface Type
public boolean isInterface()
isInterface
in interface Type
public boolean isPrimitive()
isPrimitive
in interface Type
public Name getQualifiedName()
getQualifiedName
in interface Type
public String getPathToSourceFile()
getPathToSourceFile
in interface Type
public String getPackageName()
getPackageName
in interface Type
public String getClassName()
getClassName
in interface Type
public boolean isCollection()
isCollection
in interface Typeable
public boolean isNestedProcessor()
isNestedProcessor
in interface Typeable
public boolean isArrayOrList()
isArrayOrList
in interface Typeable
public boolean isDsqlQueryObject()
isDsqlQueryObject
in interface Type
public boolean isHttpCallback()
isHttpCallback
in interface Typeable
public boolean isBigDecimal()
isBigDecimal
in interface Typeable
public boolean isBigInteger()
isBigInteger
in interface Typeable
public boolean isComplexType()
isComplexType
in interface Typeable
public boolean isComplexTypeWithGetterAndSetter(boolean checkGetterAndSetter)
isComplexTypeWithGetterAndSetter
in interface Typeable
public boolean isCalendar()
isCalendar
in interface Typeable
public boolean inheritsFrom(Type type)
Type
inheritsFrom
in interface Type
type
- Type to validate inheritancepublic boolean inheritsFrom(Class clazz)
Type
inheritsFrom
in interface Type
clazz
- class to validate inheritancepublic void accept(ModelVisitor visitor)
accept
in interface Identifiable<TypeElement>
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.