接口 ExecutionStrategy

所有已知实现类:
DefaultExecutionStrategy, MethodExecutionStrategy

public interface ExecutionStrategy
The strategy used to execute a method on an object instance.
  • 方法概要

    修饰符和类型
    方法
    说明
    execute(Object instance)
    Executes a method on an object instance, or a static method if the specified instance is null.
  • 方法详细资料

    • execute

      Object execute(Object instance) throws ScriptException
      Executes a method on an object instance, or a static method if the specified instance is null.
      参数:
      instance - the object instance to be executed or null to execute a static method
      返回:
      the return value of the method, or null
      抛出:
      ScriptException - if no method to execute was found