AnnotatedElement
public static class CommandLine.Model.MethodParam extends AccessibleObject
Constructor | Description |
---|---|
MethodParam(Method method,
int paramIndex) |
Modifier and Type | Method | Description |
---|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
|
Annotation[] |
getDeclaredAnnotations() |
|
Method |
getDeclaringExecutable() |
|
String |
getName() |
|
Type |
getParameterizedType() |
|
Class<?> |
getType() |
|
boolean |
isAccessible() |
|
void |
setAccessible(boolean flag) |
|
String |
toString() |
canAccess, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent, setAccessible, trySetAccessible
public MethodParam(Method method, int paramIndex)
public Type getParameterizedType()
public String getName()
public Class<?> getType()
public Method getDeclaringExecutable()
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
getAnnotation
in class AccessibleObject
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
getDeclaredAnnotations
in class AccessibleObject
public void setAccessible(boolean flag) throws SecurityException
setAccessible
in class AccessibleObject
SecurityException
public boolean isAccessible() throws SecurityException
isAccessible
in class AccessibleObject
SecurityException
Copyright © 2017–2019. All rights reserved.