Package com.scratchdisk.script

Examples of com.scratchdisk.script.Scope


    }
    return null;
  }

  public Scope createScope() {
    Scope scope = super.createScope();
    // Override global to point to the 'local' global scope ;)
    scope.put("global", ((RhinoScope) scope).getScope());
    return scope;
  }
View Full Code Here


   * beginExecution before and endExecution after it, which commits all
   * changes after execution.
   */
  public static Object invoke(Callable callable, Object obj, Object... args) {
    lastError = null;
    Scope scope;
    if (obj instanceof Scope) {
      scope = (Scope) obj;
      obj = scope.getScope();
    } else {
      scope = callable.getScope();
    }
    beginExecution(null, scope);
    // Retrieve wrapper object for the native java object, and
View Full Code Here

TOP

Related Classes of com.scratchdisk.script.Scope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.