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