- java.lang.Object
-
- com.pi4j.util.ReflectionUtil
-
public class ReflectionUtil extends Object
ReflectionUtil class.
- Version:
- $Id: $Id
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<Class>getAllClasses(Class targetClass)getAllClasses.static Collection<Class>getAllClasses(Object target)getAllClasses.static Collection<Class>getAllInterfaces(Class targetClass)getAllInterfaces.static Collection<Class>getAllInterfaces(Object target)getAllInterfaces.static Collection<Class>getAllInterfacesSorted(Object target)getAllInterfacesSorted.
-
-
-
Method Detail
-
getAllInterfacesSorted
public static Collection<Class> getAllInterfacesSorted(Object target)
getAllInterfacesSorted. Interfaces are sorted by full qualified class name.
- Parameters:
target- aObjectobject.- Returns:
- a sorted
Collectionobject.
-
getAllInterfaces
public static Collection<Class> getAllInterfaces(Object target)
getAllInterfaces.
- Parameters:
target- aObjectobject.- Returns:
- a
Collectionobject.
-
getAllInterfaces
public static Collection<Class> getAllInterfaces(Class targetClass)
getAllInterfaces.
- Parameters:
targetClass- aClassobject.- Returns:
- a
Collectionobject.
-
getAllClasses
public static Collection<Class> getAllClasses(Object target)
getAllClasses.
- Parameters:
target- aObjectobject.- Returns:
- a
Collectionobject.
-
getAllClasses
public static Collection<Class> getAllClasses(Class targetClass)
getAllClasses.
- Parameters:
targetClass- aClassobject.- Returns:
- a
Collectionobject.
-
-