public class ReflectiveRunner
extends java.lang.Object
implements java.lang.Runnable, java.util.concurrent.Callable
Modifier and Type | Field and Description |
---|---|
static java.lang.Class |
_B |
static java.lang.Class |
_COMP |
static java.lang.Class |
_I |
static java.lang.Class |
_JCOMP |
static java.lang.Class |
_L |
static java.lang.Class |
_O |
static java.lang.Class |
_OARR |
static java.lang.Class |
_S |
static ReflectiveRunner |
NOOP |
Constructor and Description |
---|
ReflectiveRunner(java.lang.Class c,
java.lang.reflect.Method m,
java.lang.Object[] args) |
ReflectiveRunner(java.lang.Class c,
java.lang.String methodName) |
ReflectiveRunner(java.lang.Class c,
java.lang.String methodName,
java.lang.Object[] args) |
ReflectiveRunner(java.lang.Class c,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class[] argTypes) |
ReflectiveRunner(java.lang.reflect.Method m) |
ReflectiveRunner(java.lang.reflect.Method m,
java.lang.Object[] args) |
ReflectiveRunner(java.lang.Object o,
java.lang.reflect.Method m,
java.lang.Object[] args) |
ReflectiveRunner(java.lang.Object o,
java.lang.String methodName) |
ReflectiveRunner(java.lang.Object o,
java.lang.String methodName,
java.lang.Object[] args) |
ReflectiveRunner(java.lang.Object o,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class[] argTypes) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
arrayOf(java.lang.Class clazz)
returns class for one-dimensional array of given class object, not throwing checked exception
|
java.lang.Object |
call() |
void |
cancel() |
static java.lang.Class |
cfn(java.lang.String clazz)
returns class for given fqname, not throwing checked exception
|
static java.lang.Class |
cfna(java.lang.String clazz)
returns class for one-dimensional array of given class fqname, not throwing checked exception
|
ReflectiveRunner |
execute() |
static java.lang.reflect.Method |
getDeclaredMethod(java.lang.Class c,
java.lang.String methodName) |
static java.lang.reflect.Method |
getDeclaredMethod(java.lang.Class c,
java.lang.String methodName,
java.lang.Class[] argTypes) |
static java.lang.reflect.Method |
getDeclaredMethod(java.lang.Object o,
java.lang.String methodName) |
static java.lang.reflect.Method |
getDeclaredMethod(java.lang.Object o,
java.lang.String methodName,
java.lang.Class[] argTypes) |
java.lang.Throwable |
getError() |
java.lang.Object |
getResult() |
MarkableToCancelThread |
getWorker() |
boolean |
isAlive()
Returns true if the worker-thread of this ReflectiveRunner exists and is alive.
|
void |
join() |
void |
run() |
static boolean |
shouldCancel() |
java.util.concurrent.Future |
submit() |
java.lang.String |
toString() |
public static final ReflectiveRunner NOOP
public static final java.lang.Class _B
public static final java.lang.Class _I
public static final java.lang.Class _L
public static final java.lang.Class _S
public static final java.lang.Class _O
public static final java.lang.Class _OARR
public static final java.lang.Class _COMP
public static final java.lang.Class _JCOMP
public ReflectiveRunner(java.lang.Object o, java.lang.String methodName)
public ReflectiveRunner(java.lang.Object o, java.lang.String methodName, java.lang.Object[] args)
public ReflectiveRunner(java.lang.Object o, java.lang.String methodName, java.lang.Object[] args, java.lang.Class[] argTypes)
public ReflectiveRunner(java.lang.Class c, java.lang.String methodName)
public ReflectiveRunner(java.lang.Class c, java.lang.String methodName, java.lang.Object[] args)
public ReflectiveRunner(java.lang.Class c, java.lang.String methodName, java.lang.Object[] args, java.lang.Class[] argTypes)
public ReflectiveRunner(java.lang.Class c, java.lang.reflect.Method m, java.lang.Object[] args)
public ReflectiveRunner(java.lang.reflect.Method m)
public ReflectiveRunner(java.lang.reflect.Method m, java.lang.Object[] args)
public ReflectiveRunner(java.lang.Object o, java.lang.reflect.Method m, java.lang.Object[] args)
public static java.lang.reflect.Method getDeclaredMethod(java.lang.Object o, java.lang.String methodName)
public static java.lang.reflect.Method getDeclaredMethod(java.lang.Object o, java.lang.String methodName, java.lang.Class[] argTypes)
public static java.lang.reflect.Method getDeclaredMethod(java.lang.Class c, java.lang.String methodName)
public static java.lang.reflect.Method getDeclaredMethod(java.lang.Class c, java.lang.String methodName, java.lang.Class[] argTypes)
public void run()
run
in interface java.lang.Runnable
public java.lang.Object call() throws java.lang.Exception, java.lang.reflect.InvocationTargetException
call
in interface java.util.concurrent.Callable
java.lang.Exception
java.lang.reflect.InvocationTargetException
public java.util.concurrent.Future submit()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Throwable getError()
public MarkableToCancelThread getWorker()
public boolean isAlive()
public java.lang.Object getResult()
public ReflectiveRunner execute()
public void join()
public static boolean shouldCancel()
public void cancel()
public static java.lang.Class cfn(java.lang.String clazz)
public static java.lang.Class cfna(java.lang.String clazz)
public static java.lang.Class arrayOf(java.lang.Class clazz)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.