|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.plugins.javascript.rhino.worker.RhinoWorkerUtils
public abstract class RhinoWorkerUtils
Nested Class Summary | |
---|---|
static class |
RhinoWorkerUtils.DefaultScopeOperation
|
static interface |
RhinoWorkerUtils.ScopeOperation
|
Method Summary | |
---|---|
static R
|
childScope(Scriptable parentScope, RhinoWorkerUtils.ScopeOperation operation)
|
static Scriptable
|
parse(File source, String encoding)
|
static Scriptable
|
parse(File source, String encoding, Action contextConfig)
|
static Object
|
parseRhino(File rhinoScript, RhinoWorkerUtils.ScopeOperation operation)
|
static String
|
readFile(File file, String encoding)
|
static Object
|
toJavaValue(Object object)
|
static Map
|
toMap(Scriptable obj)
|
static void
|
writeFile(String content, File destination, String encoding)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public static R childScope(Scriptable parentScope, RhinoWorkerUtils.ScopeOperation operation)
public static Scriptable parse(File source, String encoding)
public static Scriptable parse(File source, String encoding, Action contextConfig)
public static Object parseRhino(File rhinoScript, RhinoWorkerUtils.ScopeOperation operation)
public static String readFile(File file, String encoding)
public static Object toJavaValue(Object object)
public static Map toMap(Scriptable obj)
public static void writeFile(String content, File destination, String encoding)
Gradle API 1.12