Skip to content

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 annotationClass)
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 annotationClass)

Overrides:

AccessibleObject


getDeclaredAnnotations

public Annotation[] getDeclaredAnnotations()

Overrides:

AccessibleObject


setAccessible

public void setAccessible(boolean flag)

Throws:

SecurityException

Overrides:

AccessibleObject


isAccessible

public boolean isAccessible()

Throws:

SecurityException

Overrides:

AccessibleObject


toString

public String toString()

Overrides:

AccessibleObject