java.lang.Object |
↳ |
com.pnfsoftware.jeb.util.reflect.ReflectionHelper |
Class Overview
Helper routines using the Java Reflection API.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
ReflectionHelper
()
Public Methods
public
static
boolean
hasNoArgConstructor
(Class<?> c)
public
static
T
instantiateSafe
(Class<? extends T> c)
public
static
Object
invoke2
(Method m, Object o, Object... args)
Throws
IllegalAccessException
| |
IllegalArgumentException
| |
InvocationTargetException
| |
public
static
Object
newInstance2
(Constructor<?> constructor)
Throws
IllegalAccessException
| |
IllegalArgumentException
| |
InstantiationException
| |
InvocationTargetException
| |
public
static
Class<?>
reduceDimensions
(Class<?> c)
Reduce dimensions of an array type. Careful, caveat for primitives:
- non-array => non-array
- Object[]...[] => Object
- prim[]...[] => prim[]
public
static
Class<?>
removeDimensions
(Class<?> c)
Remove dimensions of an array type.
- non-array => non-array
- type[]...[] => type
public
static
void
set2
(Field f, Object o, Object value)
Throws
IllegalAccessException
| |
IllegalArgumentException
| |