public abstract class ExprScriptEngineFactory
extends java.lang.Object
implements javax.script.ScriptEngineFactory
Constructor and Description |
---|
ExprScriptEngineFactory() |
Modifier and Type | Method and Description |
---|---|
abstract long |
getCacheHitCount()
The number of hit on the engine's script cache.
|
abstract long |
getCacheMissCount()
The number of misses on the engine's script cache.
|
abstract long |
getExecuteCount()
The number of script executions that were performed by the engine.
|
java.lang.Object |
getParameter(java.lang.String key) |
abstract long |
getParseCount()
The number of script parses that were performed by the engine.
|
abstract java.util.List<java.lang.String> |
getSubProgram(ExprDef exprDef)
Returns a subprogram for the specified ExprDef.
|
int |
getSubProgramOffset(ExprDef exprDef) |
abstract java.util.List<CodeSourceImpl.MethodSource> |
getSubPrograms(ExprCodeSource codeSource)
An approximate inverse to
#getSubprogram(ExprDef) . |
static java.util.List<java.lang.String> |
readLines(java.lang.String text) |
@Concealed public static java.util.List<java.lang.String> readLines(java.lang.String text)
public java.lang.Object getParameter(java.lang.String key)
getParameter
in interface javax.script.ScriptEngineFactory
public abstract long getParseCount()
public abstract long getExecuteCount()
public abstract long getCacheHitCount()
public abstract long getCacheMissCount()
public abstract java.util.List<java.lang.String> getSubProgram(ExprDef exprDef) throws IllegalImportException
The subprogram should define a fuction that is invokable within the context of a containing script.
Similar to ScriptEngineFactory.getProgram(String...)
.
IllegalImportException
public int getSubProgramOffset(ExprDef exprDef)
public abstract java.util.List<CodeSourceImpl.MethodSource> getSubPrograms(ExprCodeSource codeSource)
#getSubprogram(ExprDef)
.