java.lang.Object
org.htmlunit.corejs.javascript.CompileSpec<JSFunction>
org.htmlunit.corejs.javascript.FunctionCompileSpec
Parameters for compiling a JavaScript function (a single function definition). The parent scope
is required, so it must be supplied to
fromSource(String, VarScope) or fromReader(Reader, VarScope). Pass instances to Context.compileFunction(FunctionCompileSpec).- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionCompileSpec.BuilderfromReader(Reader reader, VarScope scope) static FunctionCompileSpec.BuilderfromSource(String source, VarScope scope) getScope()Methods inherited from class org.htmlunit.corejs.javascript.CompileSpec
getCompilationErrorReporter, getCompiler, getCompilerEnvironsProcessor, getLineno, getSecurityDomain, getSource, getSourceCodeSupplier, getSourceMapper, getSourceName
-
Constructor Details
-
FunctionCompileSpec
-
-
Method Details
-
fromSource
-
fromReader
public static FunctionCompileSpec.Builder fromReader(Reader reader, VarScope scope) throws IOException - Throws:
IOException
-
getScope
- Overrides:
getScopein classCompileSpec<JSFunction>
-