public final class ExecutableHelper extends Object
Constructor and Description |
---|
ExecutableHelper(TypeResolutionHelper typeResolutionHelper) |
Modifier and Type | Method and Description |
---|---|
static String |
getSignature(String name,
Class<?>[] parameterTypes) |
boolean |
overrides(ExecutableElement executableElement,
ExecutableElement other)
Checks, whether the represented method overrides the given method.
|
boolean |
overrides(Method subTypeMethod,
Method superTypeMethod)
Checks, whether
subTypeMethod overrides superTypeMethod . |
public ExecutableHelper(TypeResolutionHelper typeResolutionHelper)
public boolean overrides(ExecutableElement executableElement, ExecutableElement other)
executableElement
- the method to test againstother
- The method to test.true
If this methods overrides the passed method,
false
otherwise.public boolean overrides(Method subTypeMethod, Method superTypeMethod)
subTypeMethod
overrides superTypeMethod
.subTypeMethod
- The sub type method (cannot be null
).superTypeMethod
- The super type method (cannot be null
).true
if subTypeMethod
overrides superTypeMethod
,
false
otherwise.Copyright © 2017 JBoss by Red Hat. All rights reserved.