|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.doclets.internal.toolkit.util.ImplementedMethods
public class ImplementedMethods
For a given class method, build an array of interface methods which it implements. This code is not part of an API. It is implementation that is subject to change. Do not use it as an API
| Field Summary | |
|---|---|
private ClassDoc |
classdoc
|
private Configuration |
configuration
|
private java.util.Map<MethodDoc,Type> |
interfaces
|
private java.util.List<MethodDoc> |
methlist
|
private MethodDoc |
method
|
| Constructor Summary | |
|---|---|
ImplementedMethods(MethodDoc method,
Configuration configuration)
|
|
| Method Summary | |
|---|---|
MethodDoc[] |
build()
|
MethodDoc[] |
build(boolean sort)
Return the array of interface methods which the method passed in the constructor is implementing. |
private void |
buildImplementedMethodList(boolean sort)
Search for the method in the array of interfaces. |
Type |
getMethodHolder(MethodDoc methodDoc)
|
private boolean |
overridingMethodFound(MethodDoc method)
Search in the already found methods' list and check if it contains a method which is overriding the method parameter or is the method parameter itself. |
private void |
removeOverriddenMethod(MethodDoc method)
Search in the method list and check if it contains a method which is overridden by the method as parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<MethodDoc,Type> interfaces
private java.util.List<MethodDoc> methlist
private Configuration configuration
private final ClassDoc classdoc
private final MethodDoc method
| Constructor Detail |
|---|
public ImplementedMethods(MethodDoc method,
Configuration configuration)
| Method Detail |
|---|
public MethodDoc[] build(boolean sort)
1. Search in all the immediate interfaces which this method's class is
implementing. Do it recursively for the superinterfaces as well.
2. Traverse all the superclasses and search recursively in the
interfaces which those superclasses implement.
public MethodDoc[] build()
public Type getMethodHolder(MethodDoc methodDoc)
private void buildImplementedMethodList(boolean sort)
private void removeOverriddenMethod(MethodDoc method)
method - Is this method overriding a method in the method list.private boolean overridingMethodFound(MethodDoc method)
method - MethodDoc Method to be searched in the Method List for
an overriding method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||