Java java.lang.reflect Method fields, constructors, methods, implement or subclass

Example usage for Java java.lang.reflect Method fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang.reflect Method.

The text is from its open source code.

Field

Stringname

Method

booleanequals(Object obj)
Compares this Method against the specified object.
AnnotatedTypegetAnnotatedReturnType()
TgetAnnotation(Class annotationClass)
Annotation[]getAnnotations()
T[]getAnnotationsByType(Class annotationClass)
ClassgetClass()
Returns the runtime class of this Object .
TgetDeclaredAnnotation(Class annotationClass)
Annotation[]getDeclaredAnnotations()
ClassgetDeclaringClass()
Returns the Class object representing the class or interface that declares the method represented by this object.
ObjectgetDefaultValue()
Returns the default value for the annotation member represented by this Method instance.
Class[]getExceptionTypes()
Type[]getGenericExceptionTypes()
Type[]getGenericParameterTypes()
TypegetGenericReturnType()
Returns a Type object that represents the formal return type of the method represented by this Method object.
intgetModifiers()
StringgetName()
Returns the name of the method represented by this Method object, as a String .
Annotation[][]getParameterAnnotations()
intgetParameterCount()
Parameter[]getParameters()
Returns an array of Parameter objects that represent all the parameters to the underlying executable represented by this object.
Class[]getParameterTypes()
ClassgetReturnType()
Returns a Class object that represents the formal return type of the method represented by this Method object.
TypeVariable[]getTypeParameters()
inthashCode()
Returns a hashcode for this Method .
Objectinvoke(Object obj, Object... args)
Invokes the underlying method represented by this Method object, on the specified object with the specified parameters.
booleanisAccessible()
Get the value of the accessible flag for this reflected object.
booleanisAnnotationPresent(Class annotationClass)
booleanisBridge()
Returns true if this method is a bridge method; returns false otherwise.
booleanisDefault()
Returns true if this method is a default method; returns false otherwise.
booleanisSynthetic()
booleanisVarArgs()
voidsetAccessible(boolean flag)
StringtoGenericString()
Returns a string describing this Method , including type parameters.
StringtoString()
Returns a string describing this Method .