public class JAnnotationType extends JRealClassType implements JAnnotationType
Modifier and Type | Method and Description |
---|---|
JAnnotationMethod |
getMethod(String name,
JType[] paramTypes) |
JAnnotationMethod[] |
getMethods()
Returns the declared methods of this class (not any superclasses or
superinterfaces).
|
JAnnotationMethod[] |
getOverridableMethods()
Iterates over the most-derived declaration of each unique overridable
method available in the type hierarchy of the specified type, including
those found in superclasses and superinterfaces.
|
JAnnotationType |
isAnnotation()
Returns this instance if it is a annotation or
null if it is
not. |
acceptSubtype, addConstructor, addField, addLastModifiedTime, addMethod, addModifierBits, addNestedType, findConstructor, findField, findMethod, findNestedType, findNestedTypeImpl, getAnnotation, getAnnotations, getConstructor, getConstructors, getDeclaredAnnotations, getEnclosingType, getErasedType, getField, getFields, getImplementedInterfaces, getInheritableMethods, getInheritableMethodsOnSuperclassesAndThisClass, getInheritableMethodsOnSuperinterfacesAndMaybeThisInterface, getJNISignature, getLastModifiedTime, getModifierBits, getName, getNestedType, getNestedTypes, getOracle, getOverloads, getPackage, getQualifiedBinaryName, getQualifiedSourceName, getSimpleSourceName, getSubtypes, getSuperclass, isAbstract, isAnnotationPresent, isArray, isClass, isDefaultInstantiable, isEnum, isFinal, isGenericType, isInterface, isMemberType, isParameterized, isPrimitive, isPrivate, isProtected, isPublic, isRawType, isStatic, isWildcard, notifySuperTypesOf, removeSubtype, toString
asParameterizationOf, equals, findAnnotationInTypeHierarchy, getFlattenedSupertypeHierarchy, getFlattenedSuperTypeHierarchy, getLeafType, getMetaData, getMetaDataTags, getParameterizedQualifiedSourceName, hashCode, isAssignableFrom, isAssignableTo, isClassOrInterface, isEnhanced, isLocalType, isMaybeParameterizedType, isPackageProtected, isTypeParameter, setEnhanced
getLastModifiedTime
asParameterizationOf, findAnnotationInTypeHierarchy, findConstructor, findField, findMethod, findNestedType, getConstructor, getConstructors, getEnclosingType, getErasedType, getField, getFields, getFlattenedSupertypeHierarchy, getImplementedInterfaces, getInheritableMethods, getName, getNestedType, getNestedTypes, getOracle, getOverloads, getPackage, getSubtypes, getSuperclass, isAbstract, isAssignableFrom, isAssignableTo, isDefaultInstantiable, isEnhanced, isFinal, isLocalType, isMemberType, isPackageProtected, isPrivate, isProtected, isPublic, isStatic, setEnhanced
getJNISignature, getLeafType, getParameterizedQualifiedSourceName, getQualifiedBinaryName, getQualifiedSourceName, getSimpleSourceName, isArray, isClass, isClassOrInterface, isEnum, isGenericType, isInterface, isParameterized, isPrimitive, isRawType, isTypeParameter, isWildcard
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
getMetaData, getMetaDataTags
public JAnnotationMethod getMethod(String name, JType[] paramTypes) throws NotFoundException
getMethod
in interface JAnnotationType
getMethod
in interface JClassType
getMethod
in class JRealClassType
NotFoundException
public JAnnotationMethod[] getMethods()
JClassType
getMethods
in interface JClassType
getMethods
in class JRealClassType
public JAnnotationMethod[] getOverridableMethods()
JClassType
final
and its accessibility is public
,
protected
, or package protected.
Deferred binding generators often need to generate method implementations;
this method offers a convenient way to find candidate methods to implement.
Note that the behavior does not match
Class#getMethod(String, Class[])
, which does not return the most
derived method in some cases.getOverridableMethods
in interface JClassType
getOverridableMethods
in class JRealClassType
JMethod
objects representing overridable
methodspublic JAnnotationType isAnnotation()
JClassType
null
if it is
not.isAnnotation
in interface JType
isAnnotation
in class JClassType
null
if it is
notCopyright © 2018. All rights reserved.