src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/VisibleMemberTable.java
equal
deleted
inserted
replaced
246 /** |
246 /** |
247 * Returns the simply overridden method. |
247 * Returns the simply overridden method. |
248 * @param e the method to check |
248 * @param e the method to check |
249 * @return the overridden method or null |
249 * @return the overridden method or null |
250 */ |
250 */ |
251 public ExecutableElement getsimplyOverriddenMethod(ExecutableElement e) { |
251 public ExecutableElement getSimplyOverriddenMethod(ExecutableElement e) { |
252 ensureInitialized(); |
252 ensureInitialized(); |
253 |
253 |
254 OverridingMethodInfo found = overriddenMethodTable.get(e); |
254 OverridingMethodInfo found = overriddenMethodTable.get(e); |
255 if (found != null && found.simpleOverride) { |
255 if (found != null && found.simpleOverride) { |
256 return found.overrider; |
256 return found.overrider; |
867 } |
867 } |
868 |
868 |
869 public List<ExecutableElement> getImplementedMethods(ExecutableElement method) { |
869 public List<ExecutableElement> getImplementedMethods(ExecutableElement method) { |
870 ImplementedMethods imf = getImplementedMethodsFinder(method); |
870 ImplementedMethods imf = getImplementedMethodsFinder(method); |
871 return imf.getImplementedMethods().stream() |
871 return imf.getImplementedMethods().stream() |
872 .filter(m -> getsimplyOverriddenMethod(m) == null) |
872 .filter(m -> getSimplyOverriddenMethod(m) == null) |
873 .collect(Collectors.toList()); |
873 .collect(Collectors.toList()); |
874 } |
874 } |
875 |
875 |
876 public TypeMirror getImplementedMethodHolder(ExecutableElement method, |
876 public TypeMirror getImplementedMethodHolder(ExecutableElement method, |
877 ExecutableElement implementedMethod) { |
877 ExecutableElement implementedMethod) { |