Checks whether this method is a default method. Default methods are public methods in interfaces with no abstract modifier. @return true if this method is a default interface method
()
| 284 | * @return true if this method is a default interface method |
| 285 | */ |
| 286 | public boolean isDefault() { |
| 287 | return (modifiers & (ACC_ABSTRACT | ACC_PUBLIC | ACC_STATIC)) == ACC_PUBLIC && |
| 288 | Optional.ofNullable(getDeclaringClass()).filter(ClassNode::isInterface).isPresent(); |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * Checks whether this method is declared as final. |
no test coverage detected