Package io.github.qishr.cascara.common.util
Class MethodParam
java.lang.Object
java.lang.reflect.AccessibleObject
io.github.qishr.cascara.common.util.CommandLine.Model.MethodParam
Enclosing Class:
io.github.qishr.cascara.common.util.CommandLine.Model
public static class MethodParam
extends AccessibleObject
Command method parameter, similar to java.lang.reflect.Parameter (not available before Java 8).
Constructor Summary
| Constructor | Description |
|---|---|
| MethodParam(Method method, int paramIndex) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public Type | getParameterizedType() | |
| public String | getName() | |
| public Class<?> | getType() | |
| public Method | getDeclaringExecutable() | |
| public T | getAnnotation(Class |
|
| public Annotation[] | getDeclaredAnnotations() | |
| public void | setAccessible(boolean flag) | |
| public boolean | isAccessible() | |
| public String | toString() |
Method Details
getParameterizedType
public Type getParameterizedType()
getName
public String getName()
getType
public Class<?> getType()
getDeclaringExecutable
public Method getDeclaringExecutable()
getAnnotation
public T getAnnotation(Class
Overrides:
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
Overrides:
setAccessible
public void setAccessible(boolean flag)
Throws:
Overrides:
isAccessible
public boolean isAccessible()
Throws:
Overrides:
toString
public String toString()
Overrides: