public final class Methods extends Object
java.lang.reflect.Method.isAccesible
{@code java.lang.reflect.Method.invoke}
Compatible with JDK7., Line 586{@code java.lang.reflect.Method.getName}
Compatible with JDK7., Line 171{@code java.lang.reflect.Field.get}
comes from {@link sun.reflect.FieldAccessor}. Compatible with JDK7.,{@code java.lang.Class.getMethods}
Compatible with JDK7., Line 1422{@code java.lang.Class.getMethod}
Compatible with JDK7., Line 1614.Modifier and Type | Method and Description |
---|---|
static Method |
get(Class<?> klass,
String methodName) |
static Method |
get(Object instance,
String methodName) |
static Method |
getGetter(Class<?> klass,
Field field,
boolean reactOnBool) |
static Method |
getGetter(Class<?> klass,
String fieldName,
boolean reactOnBool) |
static Method |
getGetter(Object instance,
Field field,
boolean reactOnBool) |
static Method |
getGetter(Object instance,
String fieldName,
boolean reactOnBool) |
static Method |
getSetter(Class<?> klass,
Field field,
boolean reactOnBool) |
static Method |
getSetter(Class<?> klass,
String fieldName,
boolean reactOnBool) |
static Method |
getSetter(Object instance,
Field field,
boolean reactOnBool) |
static Method |
getSetter(Object instance,
String fieldName,
boolean reactOnBool) |
static Object |
invoke(Object instance,
Method method,
Object... parameters) |
static Object |
invoke(Object instance,
String methodName,
Object... parameters) |
public static Object invoke(Object instance, String methodName, Object... parameters)
instance
- methodName
- parameters
- public static Object invoke(Object instance, Method method, Object... parameters)
instance
- method
- parameters
- public static Method getGetter(Class<?> klass, Field field, boolean reactOnBool)
klass
- field
- reactOnBool
- public static Method getGetter(Object instance, Field field, boolean reactOnBool)
instance
- field
- reactOnBool
- public static Method getGetter(Class<?> klass, String fieldName, boolean reactOnBool)
klass
- fieldName
- reactOnBool
- public static Method getGetter(Object instance, String fieldName, boolean reactOnBool)
instance
- fieldName
- reactOnBool
- public static Method getSetter(Class<?> klass, Field field, boolean reactOnBool)
klass
- field
- reactOnBool
- public static Method getSetter(Object instance, Field field, boolean reactOnBool)
instance
- field
- reactOnBool
- public static Method getSetter(Object instance, String fieldName, boolean reactOnBool)
instance
- fieldName
- reactOnBool
- public static Method getSetter(Class<?> klass, String fieldName, boolean reactOnBool)
klass
- fieldName
- reactOnBool
- public static Method get(Class<?> klass, String methodName)
klass
- methodName
- Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.