Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
Class CompileSpec<T extends ScriptOrFn<T>>
java.lang.Object
org.htmlunit.corejs.javascript.CompileSpec<T>
- Direct Known Subclasses:
FunctionCompileSpec,ScriptCompileSpec
Parameters for compiling a JavaScript script (i.e. top-level program source) or function. Build
instances via
ScriptCompileSpec.fromSource(String) or ScriptCompileSpec.fromReader(Reader) or FunctionCompileSpec#fromSource(String) or FunctionCompileSpec#fromReader(Reader) to create a CompileSpec.Builder, set the other properties you
need on that, and then pass the built compile spec to Context.compileScript(ScriptCompileSpec) or Context.evaluateScript(ScriptCompileSpec, VarScope), or the equivalent methods for compiling functions.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCompileSpec.Builder<T extends ScriptOrFn<T>,U extends CompileSpec.Builder<T, U>> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CompileSpec
-
-
Method Details
-
getSource
-
getScope
-
getSourceName
-
getLineno
public int getLineno() -
getSecurityDomain
-
getCompiler
-
getCompilationErrorReporter
-
getCompilerEnvironsProcessor
-
getSourceMapper
-
getSourceCodeSupplier
-