Example usage for Java java.lang.reflect Executable fields, constructors, methods, implement or subclass
The text is from its open source code.
T | getAnnotation(Class |
Class> | getDeclaringClass() Returns the Class object representing the class or interface that declares the executable represented by this object. |
Class>[] | getExceptionTypes() Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object. |
int | getModifiers() Returns the Java language Modifier modifiers for the executable represented by this object. |
Parameter[] | getParameters() Returns an array of Parameter objects that represent all the parameters to the underlying executable represented by this object. |
Class>[] | getParameterTypes() Returns an array of Class objects that represent the formal parameter types, in declaration order, of the executable represented by this object. |
boolean | isVarArgs() Returns true if this executable was declared to take a variable number of arguments; returns false otherwise. |