Example usage for Java java.lang.reflect Parameter fields, constructors, methods, implement or subclass
The text is from its open source code.
String | name |
boolean | equals(Object obj) Compares based on the executable and the index. |
T | getAnnotation(Class |
Annotation[] | getAnnotations() |
Class> | getClass() Returns the runtime class of this Object . |
T | getDeclaredAnnotation(Class |
Executable | getDeclaringExecutable() Return the Executable which declares this parameter. |
String | getName() Returns the name of the parameter. |
Type | getParameterizedType() Returns a Type object that identifies the parameterized type for the parameter represented by this Parameter object. |
Class> | getType() Returns a Class object that identifies the declared type for the parameter represented by this Parameter object. |
boolean | isAnnotationPresent(Class extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false. |
boolean | isNamePresent() Returns true if the parameter has a name according to the class file; returns false otherwise. |
String | toString() Returns a string describing this parameter. |