Returns true if this metamethod represents the same method as the argument. @param method A metaMethod instance @return true if method is for the same method as this method, false otherwise.
(MetaMethod method)
| 110 | * @return true if method is for the same method as this method, false otherwise. |
| 111 | */ |
| 112 | public boolean isMethod(MetaMethod method) { |
| 113 | return getName().equals(method.getName()) |
| 114 | && getModifiers() == method.getModifiers() |
| 115 | && getReturnType().equals(method.getReturnType()) |
| 116 | && equal(getParameterTypes(), method.getParameterTypes()); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Compares cached parameter types against Java classes. |
no test coverage detected