|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.ClassAnalyzer
public class ClassAnalyzer
Provides an analyzer of class constructor, accessor and mutator methods.
Method Summary | |
---|---|
static void |
clear()
Clear the cached analyzers. |
Collection |
getAccessiblePropertyNames()
Return the property names of the accessor methods. |
Collection |
getAccessiblePropertyNamesAlphabetized()
Return an alphabetized collection of property names of the accessor methods. |
Method |
getAccessorMethodFor(String propertyName)
Return the accessor method for the given property name. |
Collection |
getAccessorMethods()
Return the accessor methods. |
static ClassAnalyzer |
getInstance(Class aClass)
Return a class analyzer instance. |
static ClassAnalyzer |
getInstance(String className)
Return a class analyzer instance. |
Collection |
getMutablePropertyNames()
Return the property names of the mutator methods. |
Collection |
getMutablePropertyNamesAlphabetized()
Return an alphabetized collection of property names of the accessor methods. |
Method |
getMutatorMethodFor(String propertyName)
Return the mutator method for the given property name. |
Collection |
getMutatorMethods()
Return the mutator methods. |
Constructor |
getNoArgConstructor()
Return the no-arg constructor. |
Class |
getPropertyType(String propertyName)
Return the type of the given property. |
Class |
getSubjectClass()
Return the subject class. |
static Object |
getValue(Object object,
String propertyName)
Return the value of the given property from the given object. |
static void |
setValue(Object object,
String propertyName,
Object newValue)
Set the given value of the given property on the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void clear()
public static ClassAnalyzer getInstance(String className)
public static ClassAnalyzer getInstance(Class aClass)
public static Object getValue(Object object, String propertyName) throws IllegalAccessException, InvocationTargetException
propertyName
- object
-
IllegalAccessException
InvocationTargetException
public static void setValue(Object object, String propertyName, Object newValue) throws IllegalAccessException, InvocationTargetException
propertyName
- object
-
IllegalAccessException
InvocationTargetException
public Collection getAccessiblePropertyNames()
public Collection getAccessiblePropertyNamesAlphabetized()
public Method getAccessorMethodFor(String propertyName)
public Collection getAccessorMethods()
public Collection getMutablePropertyNames()
public Collection getMutablePropertyNamesAlphabetized()
public Method getMutatorMethodFor(String propertyName)
public Collection getMutatorMethods()
public Constructor getNoArgConstructor()
public Class getPropertyType(String propertyName)
public Class getSubjectClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |