public final class ExecutableHelper extends Object
| Constructor and Description |
|---|
ExecutableHelper(TypeResolutionHelper typeResolutionHelper) |
| Modifier and Type | Method and Description |
|---|---|
static ElementType |
getElementType(Executable executable) |
static String |
getExecutableAsString(String name,
Class<?>... parameterTypes)
Returns a string representation of an executable with the given name and parameter types in the form
{@code
|
static String |
getSignature(Executable executable) |
static String |
getSignature(String name,
Class<?>[] parameterTypes) |
static String |
getSimpleName(Executable executable) |
boolean |
overrides(Method subTypeMethod,
Method superTypeMethod)
Checks, whether
subTypeMethod overrides superTypeMethod. |
public ExecutableHelper(TypeResolutionHelper typeResolutionHelper)
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.public static String getSimpleName(Executable executable)
public static String getSignature(Executable executable)
public static String getExecutableAsString(String name, Class<?>... parameterTypes)
<name>(<parameterType 0> ... <parameterType n>), e.g. for logging purposes.name - the name of the executableparameterTypes - the types of the executable's parameterspublic static ElementType getElementType(Executable executable)
Copyright © 2019 JBoss by Red Hat. All rights reserved.