|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.beans2.ObjectFeatures<T>
public class ObjectFeatures<T>
Determine an object's features for a particular class. Object features include a class's properties, as well as all methods and fields -- static or non-static. Methods are pre-sorted based on arguments and class hierarchy to allow fast resolution of overloaded methods.
Constructor Summary | |
---|---|
ObjectFeatures(java.lang.Class<T> clazz)
Create object features for a given class. |
Method Summary | |
---|---|
T[] |
getEnumValues()
Get an array of all enumeration values for the enum class. |
java.lang.reflect.Field |
getField(java.lang.String name)
Get a Field object for the given name. |
java.util.List<java.lang.reflect.Method> |
getMethods(java.lang.String name)
Get a list of all methods for the given name. |
java.beans.PropertyDescriptor |
getProperty(java.lang.String name)
Get a PropertyDescriptor object for the given name. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectFeatures(java.lang.Class<T> clazz) throws java.beans.IntrospectionException
clazz
- the class to be introspected
java.beans.IntrospectionException
- there was a problem introspecting the
given classMethod Detail |
---|
public java.util.List<java.lang.reflect.Method> getMethods(java.lang.String name)
Features
getMethods
in interface Features<T>
name
- the name of the method to be retrieved
public java.beans.PropertyDescriptor getProperty(java.lang.String name)
Features
getProperty
in interface Features<T>
name
- the name of the property to be retrieved
public java.lang.reflect.Field getField(java.lang.String name)
Features
getField
in interface Features<T>
name
- the name of the field to be retrieved
public T[] getEnumValues()
Features
getEnumValues
in interface Features<T>
null
if the class is not an enumpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |