Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
Class CompileSpec.Builder<T extends ScriptOrFn<T>,U extends CompileSpec.Builder<T,U>>
java.lang.Object
org.htmlunit.corejs.javascript.CompileSpec.Builder<T,U>
- Direct Known Subclasses:
FunctionCompileSpec.Builder,ScriptCompileSpec.Builder
- Enclosing class:
- CompileSpec<T extends ScriptOrFn<T>>
public abstract static class CompileSpec.Builder<T extends ScriptOrFn<T>,U extends CompileSpec.Builder<T,U>>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ErrorReporterprotected Evaluatorprotected Consumer<CompilerEnvirons>protected intprotected Objectprotected final Stringprotected SourceCodeSupplierprotected SourceMapperprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CompileSpec<T>build()compilationErrorReporter(ErrorReporter compilationErrorReporter) compilerEnvironsProcessor(Consumer<CompilerEnvirons> compilerEnvironsProcessor) protected abstract UgetThis()lineno(int lineno) securityDomain(Object securityDomain) sourceCodeSupplier(SourceCodeSupplier sourceCodeSupplier) Can be used to set a lazy source code provider for the script being compiled - for example, something that will lookup the script from a database.sourceMapper(SourceMapper sourceMapper) sourceName(String sourceName)
-
Field Details
-
source
-
sourceName
-
lineno
protected int lineno -
securityDomain
-
compiler
-
compilationErrorReporter
-
compilerEnvironsProcessor
-
sourceMapper
-
sourceCodeSupplier
-
-
Constructor Details
-
Builder
-
-
Method Details
-
sourceName
-
lineno
-
securityDomain
-
compiler
-
compilationErrorReporter
-
compilerEnvironsProcessor
-
sourceMapper
-
sourceCodeSupplier
Can be used to set a lazy source code provider for the script being compiled - for example, something that will lookup the script from a database. If set, Rhino will avoid storing the encoded source code and thus save memory. The trade-off is, of course, that whenever someone does `Function.toString()` we will need to do a database lookup. -
getThis
-
build
-