|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csstudio.ui.util.ReflectUtil
public class ReflectUtil
Implementing some introspection functions based on the class name instead of the class object. Using class tokens would mean that this plugin has dependencies to all plugins that have a single type.
Constructor Summary | |
---|---|
ReflectUtil()
|
Method Summary | |
---|---|
static java.lang.String |
getComponentType(java.lang.String targetClass)
Analogous to Class.getComponentType(). |
static boolean |
isArray(java.lang.String targetClass)
Analogous to Class.isArray(). |
static boolean |
isInstance(java.lang.Object obj,
java.lang.String targetClass)
Analogous to Class.isInstance(Object obj). |
static java.lang.String |
toArrayClass(java.lang.String className)
Returns the array class name for the given class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectUtil()
Method Detail |
---|
public static boolean isInstance(java.lang.Object obj, java.lang.String targetClass)
public static boolean isArray(java.lang.String targetClass)
targetClass
- a class name
public static java.lang.String getComponentType(java.lang.String targetClass)
targetClass
- a class representing an array
public static java.lang.String toArrayClass(java.lang.String className)
className
- a class name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |