Example usage for jdk.nashorn.internal.lookup Lookup MH

List of usage examples for jdk.nashorn.internal.lookup Lookup MH

Introduction

In this page you can find the example usage for jdk.nashorn.internal.lookup Lookup MH.

Prototype

MethodHandleFunctionality MH

To view the source code for jdk.nashorn.internal.lookup Lookup MH.

Click Source Link

Document

A global singleton that points to the MethodHandleFunctionality .

Usage

From source file:io.stallion.plugins.javascript.EvalLoop.java

License:Open Source License

public static MethodHandle getCalcHandle2(Global global, Context context) {
    EvalLoop.global = global;//from  w w  w .j a v  a2s.  com
    EvalLoop.context = context;
    return Lookup.MH.findStatic(MethodHandles.lookup(), EvalLoop.class, "calc",
            Lookup.MH.type(Object.class, new Class[] { Object.class, String.class, Object.class }));
}