| java.lang.Object com.sun.tools.javadoc.DocImpl com.sun.tools.javadoc.ProgramElementDocImpl com.sun.tools.javadoc.MemberDocImpl com.sun.tools.javadoc.ExecutableMemberDocImpl com.sun.tools.javadoc.MethodDocImpl
All known Subclasses: com.sun.tools.javadoc.AnnotationTypeElementDocImpl,
MethodDocImpl | public class MethodDocImpl extends ExecutableMemberDocImpl implements MethodDoc(Code) | | Represents a method of a java class.
since: 1.2 author: Robert Field author: Neal Gafter (rewrite) |
Method Summary | |
public boolean | isAbstract() | public boolean | isMethod() Return true if it is a method, which it is. | public String | name() | public ClassDoc | overriddenClass() Return the class that originally defined the method that
is overridden by the current definition, or null if no
such class exists. | public MethodDoc | overriddenMethod() Return the method that this method overrides. | public com.sun.javadoc.Type | overriddenType() Return the type containing the method that this method overrides. | public boolean | overrides(MethodDoc meth) Tests whether this method overrides another. | public String | qualifiedName() | public com.sun.javadoc.Type | returnType() Get return type. | public String | toString() Returns a string representation of this method. |
MethodDocImpl | public MethodDocImpl(DocEnv env, MethodSymbol sym)(Code) | | constructor.
|
isAbstract | public boolean isAbstract()(Code) | | Return true if this method is abstract
|
isMethod | public boolean isMethod()(Code) | | Return true if it is a method, which it is.
Note: constructors are not methods.
This method is overridden by AnnotationTypeElementDocImpl.
true |
overriddenClass | public ClassDoc overriddenClass()(Code) | | Return the class that originally defined the method that
is overridden by the current definition, or null if no
such class exists.
a ClassDocImpl representing the superclass thatoriginally defined this method, null if this method doesnot override a definition in a superclass. |
overriddenMethod | public MethodDoc overriddenMethod()(Code) | | Return the method that this method overrides.
a MethodDoc representing a method definitionin a superclass this method overrides, null ifthis method does not override. |
overriddenType | public com.sun.javadoc.Type overriddenType()(Code) | | Return the type containing the method that this method overrides.
It may be a ClassDoc or a ParameterizedType .
|
overrides | public boolean overrides(MethodDoc meth)(Code) | | Tests whether this method overrides another.
The overridden method may be one declared in a superclass or
a superinterface (unlike
MethodDocImpl.overriddenMethod() ).
When a non-abstract method overrides an abstract one, it is
also said to implement the other.
Parameters: meth - the other method to examine true if this method overrides the other |
returnType | public com.sun.javadoc.Type returnType()(Code) | | Get return type.
the return type of this method, null if itis a constructor. |
toString | public String toString()(Code) | | 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.
|
Fields inherited from com.sun.tools.javadoc.ExecutableMemberDocImpl | final protected MethodSymbol sym(Code)(Java Doc)
|
Methods inherited from com.sun.tools.javadoc.MemberDocImpl | abstract public boolean isSynthetic()(Code)(Java Doc)
|
|
|