public final class Reflects extends Object
Reflect.| Modifier and Type | Method and Description |
|---|---|
static org.joor.Reflect |
call(org.joor.Reflect reflect,
String name,
Object... arguments)
Calls
Reflect.call(String, Object...) to call a method by its name. |
static org.joor.Reflect |
create(org.joor.Reflect reflect,
Object... arguments)
Calls
Reflect.create(Object...) to call a constructor. |
public static org.joor.Reflect create(org.joor.Reflect reflect,
Object... arguments)
Reflect.create(Object...) to call a constructor.
This is roughly equivalent to Reflect.create(Object...) except that
any exception thrown within the called constructor is not encapsulated into
ReflectException and InvocationTargetException.
reflect - the reflection objectarguments - the constructor argumentsorg.joor.ReflectException - any reflection exceptionpublic static org.joor.Reflect call(org.joor.Reflect reflect,
String name,
Object... arguments)
Reflect.call(String, Object...) to call a method by its name.
This is roughly equivalent to Reflect.call(String, Object...) except
that any exception thrown within the called method is not encapsulated into
ReflectException and InvocationTargetException.
reflect - the reflection objectname - the method namearguments - the method argumentsvoid to be used for further reflectionorg.joor.ReflectException - any reflection exceptionCopyright © 2020. All rights reserved.