Class AnnotationTypeDocImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
gw.gosudoc.com.sun.tools.javadoc.main.ClassDocImpl
gw.gosudoc.com.sun.tools.javadoc.main.AnnotationTypeDocImpl
- All Implemented Interfaces:
AnnotationTypeDoc,ClassDoc,Doc,ProgramElementDoc,Type,Comparable<Object>
Deprecated.
Represents an annotation type.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- 1.5
-
Field Summary
Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ClassDocImpl
isIncluded, tsym, typeFields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
lineMap, treeFields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
documentation, env, treePath -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationTypeDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.ClassSymbol sym) Deprecated.AnnotationTypeDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.ClassSymbol sym, com.sun.source.util.TreePath treePath) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionelements()Deprecated.Returns the elements of this annotation type.booleanDeprecated.Returns true, as this is an annotation type.booleanDeprecated.Returns false.methods(boolean filter) Deprecated.Returns an empty array, as all methods are annotation type elements.Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ClassDocImpl
addAllClasses, asAnnotatedType, asAnnotationTypeDoc, asClassDoc, asParameterizedType, asTypeVariable, asWildcardType, classToString, constructors, constructors, containingPackage, definesSerializableFields, dimension, enumConstants, fields, fields, findClass, findConstructor, findField, findMethod, getClassName, getContainingClass, getElementType, getFlags, getFlags, importedClasses, importedPackages, innerClasses, innerClasses, interfaces, interfaceTypes, isAbstract, isAnnotationType, isClass, isEnum, isError, isException, isExternalizable, isGeneric, isIncluded, isOrdinaryClass, isPrimitive, isRuntimeException, isSerializable, isSynthetic, isThrowable, methods, modifiers, modifierSpecifier, name, position, qualifiedName, qualifiedTypeName, serializableFields, serializationMethods, simpleTypeName, subclassOf, superclass, superclassType, toString, typeName, typeParameters, typeParamTagsMethods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
annotations, containingClass, generateKey, getModifiers, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, setTreePathMethods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
comment, commentText, compareTo, documentation, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationTypeElement, isConstructor, isEnumConstant, isField, isMethod, key, readHTMLDocumentation, seeTags, setRawCommentText, tags, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.gosudoc.com.sun.javadoc.ClassDoc
constructors, constructors, definesSerializableFields, enumConstants, fields, fields, findClass, importedClasses, importedPackages, innerClasses, innerClasses, interfaces, interfaceTypes, isAbstract, isExternalizable, isSerializable, methods, serializableFields, serializationMethods, subclassOf, superclass, superclassType, typeParameters, typeParamTagsMethods inherited from interface gw.gosudoc.com.sun.javadoc.Doc
commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isMethod, isOrdinaryClass, name, position, seeTags, setRawCommentText, tags, tagsMethods inherited from interface gw.gosudoc.com.sun.javadoc.ProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedNameMethods inherited from interface gw.gosudoc.com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asClassDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName
-
Constructor Details
-
AnnotationTypeDocImpl
Deprecated. -
AnnotationTypeDocImpl
public AnnotationTypeDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.ClassSymbol sym, com.sun.source.util.TreePath treePath) Deprecated.
-
-
Method Details
-
isAnnotationType
public boolean isAnnotationType()Deprecated.Returns true, as this is an annotation type. (For legacy doclets, return false.)- Specified by:
isAnnotationTypein interfaceDoc- Overrides:
isAnnotationTypein classDocImpl- Returns:
- true if it represents an annotation type
-
isInterface
public boolean isInterface()Deprecated.Returns false. Though technically an interface, an annotation type is not considered an interface for this purpose. (For legacy doclets, returns true.)- Specified by:
isInterfacein interfaceDoc- Overrides:
isInterfacein classClassDocImpl- Returns:
- true if it represents a interface
-
methods
Deprecated.Returns an empty array, as all methods are annotation type elements. (For legacy doclets, returns the elements.)- Specified by:
methodsin interfaceClassDoc- Overrides:
methodsin classClassDocImpl- Parameters:
filter- include only the included methods if filter==true- Returns:
- an array of MethodDocImpl for representing the visible methods in this class. Does not include constructors.
- See Also:
-
elements
Deprecated.Returns the elements of this annotation type. Returns an empty array if there are none. Elements are always public, so no need to filter them.- Specified by:
elementsin interfaceAnnotationTypeDoc- Returns:
- the elements of this annotation type.
-