com.sun.faces.util
private static final class ReflectionUtils.MetaData extends java.lang.Object
MetaData contains lookup methods for Constructor
s and
Method
s of a particular Class.
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Class<?> |
clazz |
(package private) java.util.Map<java.lang.Integer,java.lang.reflect.Constructor> |
constructors |
(package private) java.util.Map<java.lang.String,java.util.HashMap<java.lang.Integer,java.lang.reflect.Method>> |
declaredMethods |
(package private) java.util.Map<java.lang.String,java.util.HashMap<java.lang.Integer,java.lang.reflect.Method>> |
methods |
(package private) java.util.Map<java.lang.String,java.beans.PropertyDescriptor> |
propertyDescriptors |
Constructor and Description |
---|
ReflectionUtils.MetaData(java.lang.Class<?> clazz)
Constructs a new
MetaData instance for the specified
class. |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Integer |
getKey(java.lang.Class<?>... params)
Return a hashcode of all the class parameters.
|
java.lang.Class<?> |
lookupClass()
Looks up the class for this MetaData instance.
|
java.lang.reflect.Constructor |
lookupConstructor(java.lang.Class<?>... params)
Looks up a
Constructor based off the specified
params . |
java.lang.reflect.Method |
lookupMethod(java.lang.String name,
java.lang.Class<?>... params)
Looks up a
Method based off the specified method
name and params . |
java.lang.reflect.Method |
lookupReadMethod(java.lang.String propName) |
java.lang.reflect.Method |
lookupWriteMethod(java.lang.String propName) |
java.util.Map<java.lang.Integer,java.lang.reflect.Constructor> constructors
java.util.Map<java.lang.String,java.util.HashMap<java.lang.Integer,java.lang.reflect.Method>> methods
java.util.Map<java.lang.String,java.util.HashMap<java.lang.Integer,java.lang.reflect.Method>> declaredMethods
java.util.Map<java.lang.String,java.beans.PropertyDescriptor> propertyDescriptors
java.lang.Class<?> clazz
public ReflectionUtils.MetaData(java.lang.Class<?> clazz)
Constructs a new MetaData
instance for the specified
class.
clazz
- class to construct a new MetaData instance from.public java.lang.reflect.Constructor lookupConstructor(java.lang.Class<?>... params)
Looks up a Constructor
based off the specified
params
.
params
- constructor parametersConstructor
appropriate to the specified
parameters or null
public java.lang.reflect.Method lookupMethod(java.lang.String name, java.lang.Class<?>... params)
Looks up a Method
based off the specified method
name and params
.
name
- the name of the params
- the Method
parametersMethod
appropriate to the specified
name and parameters or null
public java.lang.Class<?> lookupClass()
Looks up the class for this MetaData instance.
Class
for this MetaData instancepublic java.lang.reflect.Method lookupWriteMethod(java.lang.String propName)
propName
- a JavaBeans property namenull
if the property doesn't exist or is readonly.public java.lang.reflect.Method lookupReadMethod(java.lang.String propName)
propName
- a JavaBeans property namenull
if the property doesn't exist or can't be read.private static java.lang.Integer getKey(java.lang.Class<?>... params)
params
- the parameters to a Constructor
or
a Method
instanceArrays.deepHashCode
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.