|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cert.cc.jsr223.Jsr223ContextFactory
public class Jsr223ContextFactory
Creates and manages contexts for JSR-223 scripting
© 2011 Carnegie Mellon University
Constructor Summary | |
---|---|
protected |
Jsr223ContextFactory()
Protected constructor |
Method Summary | |
---|---|
ScriptEngine |
createScriptEngine(String language)
Create a new script engine for the given language |
static boolean |
eval(ScriptEngine engine,
String script,
boolean expected)
Evaluate the given script with the given engine for the given value |
static Jsr223ContextFactory |
getInstance()
Returns the singleton JSR-223 Context Factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Jsr223ContextFactory()
Method Detail |
---|
public static Jsr223ContextFactory getInstance()
public ScriptEngine createScriptEngine(String language)
language
-
public static boolean eval(ScriptEngine engine, String script, boolean expected)
engine
- script
- expected
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |