FileDocCategorySizeDatePackage
MethodDoc.javaAPI DocJava SE 5 API2214Fri Aug 26 14:54:54 BST 2005com.sun.javadoc

MethodDoc

public interface MethodDoc implements ExecutableMemberDoc
Represents a method of a java class.
since
JDK1.2
author
Robert Field

Fields Summary
Constructors Summary
Methods Summary
public booleanisAbstract()
Return true if this method is abstract

public com.sun.javadoc.ClassDocoverriddenClass()
Return the class containing the method that this method overrides.

The overriddenClass method cannot accommodate certain generic type constructs. The overriddenType method should be used instead.

return
a ClassDoc representing the superclass defining a method that this method overrides, or null if this method does not override.

public com.sun.javadoc.MethodDocoverriddenMethod()
Return the method that this method overrides.

return
a MethodDoc representing a method definition in a superclass this method overrides, null if this method does not override.

public com.sun.javadoc.TypeoverriddenType()
Return the type containing the method that this method overrides. It may be a ClassDoc or a ParameterizedType.

return
the supertype whose method is overridden, or null if this method does not override another in a superclass
since
1.5

public booleanoverrides(com.sun.javadoc.MethodDoc meth)
Tests whether this method overrides another. The overridden method may be one declared in a superclass or a superinterface (unlike {@link #overriddenMethod()}).

When a non-abstract method overrides an abstract one, it is also said to implement the other.

param
meth the other method to examine
return
true if this method overrides the other
since
1.5

public com.sun.javadoc.TypereturnType()
Get return type.

return
the return type of this method, null if it is a constructor.