ccc.commons
Class Reflection
java.lang.Object
ccc.commons.Reflection
public final class Reflection
- extends java.lang.Object
Helper methods for Java reflection.
- Author:
- Civic Computing Ltd.
Method Summary |
static
|
construct(java.lang.Class<T> expectedClass,
java.lang.String className)
|
static
|
construct(java.lang.Class<T> expectedClass,
java.lang.String className,
java.lang.Class<?>[] types,
java.lang.Object[] theArguments)
|
static
|
construct(java.lang.Class<T> expectedClass,
java.lang.String className,
java.lang.Object[] theArguments)
|
static boolean |
isClass(java.lang.String className,
java.lang.Object object)
Test if the specified object is an instance of the specified class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
construct
public static <T> T construct(java.lang.Class<T> expectedClass,
java.lang.String className)
construct
public static <T> T construct(java.lang.Class<T> expectedClass,
java.lang.String className,
java.lang.Object[] theArguments)
construct
public static <T> T construct(java.lang.Class<T> expectedClass,
java.lang.String className,
java.lang.Class<?>[] types,
java.lang.Object[] theArguments)
isClass
public static boolean isClass(java.lang.String className,
java.lang.Object object)
- Test if the specified object is an instance of the specified class.
- Parameters:
className
- The class.object
- The object to test.
- Returns:
- True if the object is an instance of the class; false otherwise.
Copyright © 2010. All Rights Reserved.