Class MethodDocImpl
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.MemberDocImpl
gw.gosudoc.com.sun.tools.javadoc.main.ExecutableMemberDocImpl
gw.gosudoc.com.sun.tools.javadoc.main.MethodDocImpl
- All Implemented Interfaces:
Doc,ExecutableMemberDoc,MemberDoc,MethodDoc,ProgramElementDoc,Comparable<Object>
- Direct Known Subclasses:
AnnotationTypeElementDocImpl
Deprecated.
Represents a method of a java class.
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.2
-
Field Summary
FieldsFields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ExecutableMemberDocImpl
symFields 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
ConstructorsConstructorDescriptionMethodDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.MethodSymbol sym) Deprecated.constructor.MethodDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.MethodSymbol sym, com.sun.source.util.TreePath treePath) Deprecated.constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Return true if this method is abstractbooleanDeprecated.Return true if this method is defaultbooleanisMethod()Deprecated.Return true if it is a method, which it is.private com.sun.tools.javac.code.ScopemembersOf(com.sun.tools.javac.code.Symbol.ClassSymbol c) Deprecated.Retrieve members of c, ignoring any CompletionFailures that occur.name()Deprecated.Returns the name of this Doc item.Deprecated.Return the class that originally defined the method that is overridden by the current definition, or null if no such class exists.Deprecated.Return the method that this method overrides.Deprecated.Return the type containing the method that this method overrides.booleanDeprecated.Tests whether this method overrides another.Deprecated.Returns the qualified name of this Doc item.Deprecated.Get return type.toString()Deprecated.Returns a string representation of this method.Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ExecutableMemberDocImpl
flatSignature, generateKey, getContainingClass, getFlags, isIncluded, isNative, isSynchronized, isSynthetic, isVarArgs, parameters, paramTags, position, receiverType, signature, thrownExceptions, thrownExceptionTypes, throwsTags, typeParameters, typeParametersString, typeParamTagsMethods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
annotations, containingClass, containingPackage, getModifiers, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, setTreePathMethods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
comment, commentText, compareTo, documentation, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isInterface, isOrdinaryClass, 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.Doc
commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isInterface, isOrdinaryClass, position, seeTags, setRawCommentText, tags, tagsMethods inherited from interface gw.gosudoc.com.sun.javadoc.ExecutableMemberDoc
flatSignature, isNative, isSynchronized, isVarArgs, parameters, paramTags, receiverType, signature, thrownExceptions, thrownExceptionTypes, throwsTags, typeParameters, typeParamTagsMethods inherited from interface gw.gosudoc.com.sun.javadoc.MemberDoc
isSyntheticMethods inherited from interface gw.gosudoc.com.sun.javadoc.ProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier
-
Field Details
-
name
Deprecated. -
qualifiedName
Deprecated.
-
-
Constructor Details
-
MethodDocImpl
Deprecated.constructor. -
MethodDocImpl
public MethodDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.MethodSymbol sym, com.sun.source.util.TreePath treePath) Deprecated.constructor.
-
-
Method Details
-
isMethod
public boolean isMethod()Deprecated.Return true if it is a method, which it is. Note: constructors are not methods. This method is overridden by AnnotationTypeElementDocImpl. -
isDefault
public boolean isDefault()Deprecated.Return true if this method is default -
isAbstract
public boolean isAbstract()Deprecated.Return true if this method is abstract- Specified by:
isAbstractin interfaceMethodDoc- Returns:
- true if this method is abstract
-
returnType
Deprecated.Get return type.- Specified by:
returnTypein interfaceMethodDoc- Returns:
- the return type of this method, null if it is a constructor.
-
overriddenClass
Deprecated.Return the class that originally defined the method that is overridden by the current definition, or null if no such class exists.- Specified by:
overriddenClassin interfaceMethodDoc- Returns:
- a ClassDocImpl representing the superclass that originally defined this method, null if this method does not override a definition in a superclass.
-
overriddenType
Deprecated.Return the type containing the method that this method overrides. It may be aClassDocor aParameterizedType.- Specified by:
overriddenTypein interfaceMethodDoc- Returns:
- the supertype whose method is overridden, or null if this method does not override another in a superclass
-
overriddenMethod
Deprecated.Return the method that this method overrides.- Specified by:
overriddenMethodin interfaceMethodDoc- Returns:
- a MethodDoc representing a method definition in a superclass this method overrides, null if this method does not override.
-
membersOf
private com.sun.tools.javac.code.Scope membersOf(com.sun.tools.javac.code.Symbol.ClassSymbol c) Deprecated.Retrieve members of c, ignoring any CompletionFailures that occur. -
overrides
Deprecated.Tests whether this method overrides another. The overridden method may be one declared in a superclass or a superinterface (unlikeoverriddenMethod()).When a non-abstract method overrides an abstract one, it is also said to implement the other.
-
name
Deprecated.Description copied from class:DocImplReturns the name of this Doc item. -
qualifiedName
Deprecated.Description copied from class:DocImplReturns the qualified name of this Doc item.- Specified by:
qualifiedNamein interfaceProgramElementDoc- Specified by:
qualifiedNamein classDocImpl- Returns:
- the name
-
toString
Deprecated.Returns a string representation of this method. Includes the qualified signature, the qualified method name, and any type parameters. Type parameters follow the class name, as they do in the syntax for invoking methods with explicit type parameters.
-