Package io.roastedroot.quickjs4j.core
Class Runner
- java.lang.Object
-
- io.roastedroot.quickjs4j.core.Runner
-
- All Implemented Interfaces:
AutoCloseable
public final class Runner extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRunner.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Runner.Builderbuilder()voidclose()byte[]compile(String code)voidcompileAndExec(String code)voidexec(byte[] jsBytecode)ObjectinvokeGuestFunction(String moduleName, String name, List<Object> args, String libraryCode)Stringstderr()Stringstdout()
-
-
-
Method Detail
-
compile
public byte[] compile(String code)
-
exec
public void exec(byte[] jsBytecode)
-
compileAndExec
public void compileAndExec(String code)
-
invokeGuestFunction
public Object invokeGuestFunction(String moduleName, String name, List<Object> args, String libraryCode)
-
stdout
public String stdout()
-
stderr
public String stderr()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
builder
public static Runner.Builder builder()
-
-