类 DefaultExecutionStrategy
java.lang.Object
com.obermuhlner.scriptengine.java.execution.DefaultExecutionStrategy
- 所有已实现的接口:
ExecutionStrategy
The default
ExecutionStrategy implementation.
- class implements `Supplier`: the `get()` method is called
- class implements `Runnable`: the `run()` method is called
- class has exactly one public method without arguments: call it
-
字段概要
字段 -
构造器概要
构造器构造器说明DefaultExecutionStrategy(Class<?> clazz) Constructs aDefaultExecutionStrategyfor the specifiedClass. -
方法概要
-
字段详细资料
-
clazz
-
method
-
-
构造器详细资料
-
DefaultExecutionStrategy
Constructs aDefaultExecutionStrategyfor the specifiedClass.- 参数:
clazz- theClass
-
-
方法详细资料
-
execute
从接口复制的说明:ExecutionStrategyExecutes a method on an object instance, or a static method if the specified instance isnull.- 指定者:
execute在接口中ExecutionStrategy- 参数:
instance- the object instance to be executed ornullto execute a static method- 返回:
- the return value of the method, or
null - 抛出:
ScriptException- if no method to execute was found
-
findCallableMethod
-