public abstract class ExecutableElement extends Object
Constructor
s and Method
s.Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object obj) |
static ExecutableElement |
forConstructor(Constructor<?> constructor) |
static List<ExecutableElement> |
forConstructors(Constructor<?>[] constructors) |
static ExecutableElement |
forMethod(Method method) |
static List<ExecutableElement> |
forMethods(Method[] methods) |
abstract AccessibleObject |
getAccessibleObject() |
String |
getAsString()
Returns a string representation of this executable in the form {@code
|
abstract ElementType |
getElementType() |
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
|
abstract Type[] |
getGenericParameterTypes() |
abstract Member |
getMember() |
abstract Annotation[][] |
getParameterAnnotations() |
abstract List<String> |
getParameterNames(ParameterNameProvider parameterNameProvider) |
abstract Class<?>[] |
getParameterTypes() |
abstract Class<?> |
getReturnType() |
String |
getSignature() |
abstract String |
getSimpleName() |
abstract int |
hashCode() |
abstract boolean |
isGetterMethod() |
public static ExecutableElement forConstructor(Constructor<?> constructor)
public static List<ExecutableElement> forConstructors(Constructor<?>[] constructors)
public static ExecutableElement forMethod(Method method)
public static List<ExecutableElement> forMethods(Method[] methods)
public abstract List<String> getParameterNames(ParameterNameProvider parameterNameProvider)
public abstract Annotation[][] getParameterAnnotations()
public abstract Class<?>[] getParameterTypes()
public abstract Class<?> getReturnType()
public abstract Type[] getGenericParameterTypes()
public abstract AccessibleObject getAccessibleObject()
public abstract Member getMember()
public abstract ElementType getElementType()
public abstract String getSimpleName()
public abstract boolean isGetterMethod()
public String getAsString()
<name>(<parameterType 0> ... <parameterType n>)
,
e.g. for logging purposes.public String getSignature()
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 parametersCopyright © 2017 JBoss by Red Hat. All rights reserved.