com.silvermindsoftware.hitch.reflect
Class ClassInfo

java.lang.Object
  extended by com.silvermindsoftware.hitch.reflect.ClassInfo

public class ClassInfo
extends Object

File-location:
ClassInfo
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Field Summary
 List<Class> classList
           
 
Constructor Summary
ClassInfo(Class clazz)
           
 
Method Summary
 Field getField(String name)
          Retrieves a single field (public, private, protected or package) from the provided class or one of its superclasses.
 Field[] getFields()
          Array of all fields (public, private, protected or package) for the provided class and all of its superclasses.
 Method getGetterMethod(String name)
          Retrieves a single setter method (public, private, protected or package) from the provided class or one of its superclasses.
 Method[] getGetters()
          Array of all getter methods (public, private, protected or package) for the provided class and all of its superclasses.
 Method getMethod(String name, Class[] parameterTypes)
          Retrieves a single method that is not a setter or getter (public, private, protected or package) from the provided class or one of its superclasses.
 Method[] getMethods()
          Array of all methods that are not setters or getters (public, private, protected or package) for the provided class and all of its superclasses.
 Method getSetterMethod(String name, Class[] parameterTypes)
          Retrieves a single getter method (public, private, protected or package) from the provided class or one of its superclasses.
 Method[] getSetters()
          Array of all setter methods (public, private, protected or package) for the provided class and all of its superclasses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classList

public List<Class> classList
Constructor Detail

ClassInfo

public ClassInfo(Class clazz)
Method Detail

getField

public Field getField(String name)
               throws NoSuchFieldException
Retrieves a single field (public, private, protected or package) from the provided class or one of its superclasses. The lowest subclass field is collected when there is a duplicate. A duplicate is defined as having the same field name and type.

Returns:
Throws:
NoSuchFieldException

getSetterMethod

public Method getSetterMethod(String name,
                              Class[] parameterTypes)
                       throws NoSuchMethodException
Retrieves a single getter method (public, private, protected or package) from the provided class or one of its superclasses. The lowest subclass method is collected when there is a duplicate. A duplicate is defined as having the same method name and parameter types.

Returns:
Throws:
NoSuchMethodException

getGetterMethod

public Method getGetterMethod(String name)
                       throws NoSuchMethodException
Retrieves a single setter method (public, private, protected or package) from the provided class or one of its superclasses. The lowest subclass method is collected when there is a duplicate. A duplicate is defined as having the same method name and parameter types.

Returns:
Throws:
NoSuchMethodException

getMethod

public Method getMethod(String name,
                        Class[] parameterTypes)
                 throws NoSuchMethodException
Retrieves a single method that is not a setter or getter (public, private, protected or package) from the provided class or one of its superclasses. Only the lowest subclass method is collected when there is a duplicate. A duplicate is defined as having the same method name and parameter types.

Returns:
Throws:
NoSuchMethodException

getFields

public Field[] getFields()
Array of all fields (public, private, protected or package) for the provided class and all of its superclasses. The lowest subclass field is collected when there is a duplicate. A duplicate is defined as having the same field name and type .

Returns:

getSetters

public Method[] getSetters()
Array of all setter methods (public, private, protected or package) for the provided class and all of its superclasses. The lowest subclass method is collected when there is a duplicate. A duplicate is defined as having the same method name and parameter types.

Returns:

getGetters

public Method[] getGetters()
Array of all getter methods (public, private, protected or package) for the provided class and all of its superclasses. The lowest subclass method is collected when there is a duplicate. A duplicate is defined as having the same method name and parameter types.

Returns:

getMethods

public Method[] getMethods()
Array of all methods that are not setters or getters (public, private, protected or package) for the provided class and all of its superclasses. The lowest subclass method is collected when there is a duplicate. A duplicate is defined as having the same method name and parameter types.

Returns:


Copyright © 2005-2011 ELCA. All Rights Reserved.