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 public class AnnotationTypeDocImpl extends ClassDocImpl implements AnnotationTypeDoc
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
- Author:
- Scott Seligman
-
-
Field Summary
-
Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ClassDocImpl
tsym, type
-
Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
documentation, env, treePath
-
-
Constructor Summary
Constructors Constructor Description AnnotationTypeDocImpl(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotationTypeElementDoc[]
elements()
Deprecated.Returns the elements of this annotation type.boolean
isAnnotationType()
Deprecated.Returns true, as this is an annotation type.boolean
isInterface()
Deprecated.Returns false.MethodDoc[]
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
asAnnotatedType, asAnnotationTypeDoc, asClassDoc, asParameterizedType, asTypeVariable, asWildcardType, constructors, constructors, containingPackage, definesSerializableFields, dimension, enumConstants, fields, fields, findClass, findConstructor, findField, findMethod, getContainingClass, getElementType, getFlags, importedClasses, importedPackages, innerClasses, innerClasses, interfaces, interfaceTypes, isAbstract, isClass, isEnum, isError, isException, isExternalizable, isIncluded, isOrdinaryClass, isPrimitive, isSerializable, isSynthetic, isThrowable, methods, modifiers, modifierSpecifier, name, position, qualifiedName, qualifiedTypeName, serializableFields, serializationMethods, simpleTypeName, subclassOf, superclass, superclassType, toString, typeName, typeParameters, typeParamTags
-
Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
annotations, containingClass, getModifiers, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
-
Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
commentText, compareTo, documentation, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationTypeElement, isConstructor, isEnumConstant, isField, isMethod, seeTags, setRawCommentText, tags, tags
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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, typeParamTags
-
Methods 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, tags
-
Methods inherited from interface gw.gosudoc.com.sun.javadoc.ProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName
-
Methods inherited from interface gw.gosudoc.com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asClassDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName
-
-
-
-
Constructor Detail
-
AnnotationTypeDocImpl
public AnnotationTypeDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.ClassSymbol sym)
Deprecated.
-
AnnotationTypeDocImpl
public AnnotationTypeDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.ClassSymbol sym, com.sun.source.util.TreePath treePath)
Deprecated.
-
-
Method Detail
-
isAnnotationType
public boolean isAnnotationType()
Deprecated.Returns true, as this is an annotation type. (For legacy doclets, return false.)- Specified by:
isAnnotationType
in interfaceDoc
- Overrides:
isAnnotationType
in 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:
isInterface
in interfaceDoc
- Overrides:
isInterface
in classClassDocImpl
- Returns:
- true if it represents a interface
-
methods
public MethodDoc[] methods(boolean filter)
Deprecated.Returns an empty array, as all methods are annotation type elements. (For legacy doclets, returns the elements.)- Specified by:
methods
in interfaceClassDoc
- Overrides:
methods
in 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()
-
elements
public AnnotationTypeElementDoc[] 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:
elements
in interfaceAnnotationTypeDoc
- Returns:
- the elements of this annotation type.
-
-