Class ClassFieldMap
- java.lang.Object
-
- org.apache.velocity.util.introspection.ClassFieldMap
-
public class ClassFieldMap extends java.lang.Object
A cache of introspection information for a specific class instance. KeysField
objects by the field names.- Author:
- Jason van Zyl, Bob McWhirter, Attila Szegedi, Geir Magnusson Jr., Henning P. Schmiedehausen, Nathan Bubna, Candid Dauth
-
-
Constructor Summary
Constructors Constructor Description ClassFieldMap(java.lang.Class<?> clazz, org.slf4j.Logger log)
Standard constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Field
findField(java.lang.String name)
Find a Field using the field name.java.lang.Class<?>
getCachedClass()
Returns the class object whose fields are cached by this map.
-
-
-
Method Detail
-
getCachedClass
public java.lang.Class<?> getCachedClass()
Returns the class object whose fields are cached by this map.- Returns:
- The class object whose fields are cached by this map.
-
findField
public java.lang.reflect.Field findField(java.lang.String name)
Find a Field using the field name.- Parameters:
name
- The field name to look up.- Returns:
- A Field object representing the field to invoke or null.
-
-