Java Javascript Mozilla Library getGlobalContextForValidation()

Here you can find the source of getGlobalContextForValidation()

Description

get Global Context For Validation

License

Open Source License

Declaration

public static Context getGlobalContextForValidation() 

Method Source Code

//package com.java2s;
/*/*from  ww  w.  ja v a 2 s. c om*/
 * Copyright (c) Mirth Corporation. All rights reserved.
 * 
 * http://www.mirthcorp.com
 * 
 * The software in this package is published under the terms of the MPL license a copy of which has
 * been included with this distribution in the LICENSE.txt file.
 */

import org.mozilla.javascript.Context;

public class Main {
    public static Context getGlobalContextForValidation() {
        Context context = Context.enter();
        context.setOptimizationLevel(-1);
        return context;
    }
}

Related

  1. functionArg(Object[] args, int pos, boolean required)
  2. getArray(Scriptable scope, NativeArray array)
  3. getClassOrObjectProto(Scriptable scope, String className)
  4. getDirectColRefExpr(Node refNode, boolean mode)
  5. getFunctionArgsString(FunctionNode fn)
  6. getJavaObject(Scriptable scope, String name)
  7. getJsArray(Scriptable scope, Vector v)
  8. getMapArgument(Object[] args, int pos)
  9. getObjectArgument(Object[] args, int pos, Object defaultValue)