src.org.python.compiler.InvokedynamicCodeCompiler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython Show documentation
Show all versions of jython Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
package org.python.compiler;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.invoke.MutableCallSite;
/**
*
* @author shashank
*/
public class InvokedynamicCodeCompiler extends CodeCompiler {
public InvokedynamicCodeCompiler(Module module, boolean print_results) {
super(module, print_results);
}
// just use indy functions to make sure the build process is proper.
public void foo(){
Class mhClazz = MethodHandles.class;
MethodType target = null;
new MutableCallSite(target);
}
}