public class Introspection
extends java.lang.Object
Constructor and Description |
---|
Introspection() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
convertPrimitiveType(java.lang.Class<?> clazz)
Converts the primitive type to its corresponding wrapper.
|
static java.lang.reflect.Field[] |
getDeclaredFields(java.lang.Class<?> clazz)
Obtain the declared fields for a class taking account of any security
manager that may be configured.
|
static java.lang.reflect.Method[] |
getDeclaredMethods(java.lang.Class<?> clazz)
Obtain the declared methods for a class taking account of any security
manager that may be configured.
|
static java.lang.String |
getPropertyName(java.lang.reflect.Method setter)
Extract the Java Bean property name from the setter name.
|
static boolean |
isValidLifecycleCallback(java.lang.reflect.Method method)
Determines if a method is a valid lifecycle callback method.
|
static boolean |
isValidSetter(java.lang.reflect.Method method)
Determines if a method has a valid name and signature for a Java Bean
setter.
|
static java.lang.Class<?> |
loadClass(Context context,
java.lang.String className)
Attempt to load a class using the given Container's class loader.
|
public static java.lang.String getPropertyName(java.lang.reflect.Method setter)
public static boolean isValidSetter(java.lang.reflect.Method method)
method
- The method to testtrue
if the method does have a valid name and
signature, else false
public static boolean isValidLifecycleCallback(java.lang.reflect.Method method)
method
- The method to testtrue
if the method is a valid lifecycle callback
method, else false
public static java.lang.reflect.Field[] getDeclaredFields(java.lang.Class<?> clazz)
public static java.lang.reflect.Method[] getDeclaredMethods(java.lang.Class<?> clazz)
public static java.lang.Class<?> loadClass(Context context, java.lang.String className)
public static java.lang.Class<?> convertPrimitiveType(java.lang.Class<?> clazz)
clazz
- Class that will be evaluatedCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.