public class JavaToJsHelpers extends Object
Constructor and Description |
---|
JavaToJsHelpers(Sandbox box) |
Modifier and Type | Method and Description |
---|---|
Object |
eval(jdk.nashorn.internal.runtime.ScriptObject o,
Object scope,
String source,
boolean returnStuff) |
String |
getInput(String prompt) |
Object |
inspect(Object object) |
boolean |
isClass(Object cls) |
boolean |
isStatic(Object cls) |
void |
raiseAssertionError(String msg) |
void |
raiseClientException(String msg,
Integer status) |
void |
raiseNotFound(String msg) |
void |
raiseRedirect(String msg,
Integer status) |
void |
raiseServerException(String msg,
Integer status) |
String |
readFileToString(String file) |
Object |
toJava(Object obj) |
public JavaToJsHelpers(Sandbox box)
public String readFileToString(String file)
public void raiseRedirect(String msg, Integer status)
public void raiseNotFound(String msg)
public void raiseClientException(String msg, Integer status)
public void raiseServerException(String msg, Integer status)
public void raiseAssertionError(String msg)
Copyright © 2016. All rights reserved.