84 |
84 |
85 /** |
85 /** |
86 * Return true if this method is abstract |
86 * Return true if this method is abstract |
87 */ |
87 */ |
88 public boolean isAbstract() { |
88 public boolean isAbstract() { |
89 //### This is dubious, but old 'javadoc' apparently does it. |
89 return (Modifier.isAbstract(getModifiers()) && !isDefault()); |
90 //### I regard this as a bug and an obstacle to treating the |
|
91 //### doclet API as a proper compile-time reflection facility. |
|
92 //### (maddox 09/26/2000) |
|
93 if (containingClass().isInterface()) { |
|
94 //### Don't force creation of ClassDocImpl for super here. |
|
95 // Abstract modifier is implicit. Strip/canonicalize it. |
|
96 return false; |
|
97 } |
|
98 return Modifier.isAbstract(getModifiers()); |
|
99 } |
90 } |
100 |
91 |
101 /** |
92 /** |
102 * Get return type. |
93 * Get return type. |
103 * |
94 * |