public final class ExecutableHelper
extends java.lang.Object
Constructor and Description |
---|
ExecutableHelper(TypeResolutionHelper typeResolutionHelper) |
Modifier and Type | Method and Description |
---|---|
static java.lang.annotation.ElementType |
getElementType(java.lang.reflect.Executable executable) |
static java.lang.String |
getExecutableAsString(java.lang.String name,
java.lang.Class<?>... parameterTypes)
Returns a string representation of an executable with the given name and parameter types in the form
{@code
|
static java.lang.String |
getSignature(java.lang.reflect.Executable executable) |
static java.lang.String |
getSignature(java.lang.String name,
java.lang.Class<?>[] parameterTypes) |
static java.lang.String |
getSimpleName(java.lang.reflect.Executable executable) |
boolean |
overrides(java.lang.reflect.Method subTypeMethod,
java.lang.reflect.Method superTypeMethod)
Checks, whether
subTypeMethod overrides superTypeMethod . |
public ExecutableHelper(TypeResolutionHelper typeResolutionHelper)
public boolean overrides(java.lang.reflect.Method subTypeMethod, java.lang.reflect.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 java.lang.String getSimpleName(java.lang.reflect.Executable executable)
public static java.lang.String getSignature(java.lang.reflect.Executable executable)
public static java.lang.String getSignature(java.lang.String name, java.lang.Class<?>[] parameterTypes)
public static java.lang.String getExecutableAsString(java.lang.String name, java.lang.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 java.lang.annotation.ElementType getElementType(java.lang.reflect.Executable executable)
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved