| Package | Description |
|---|---|
| org.htmlunit.corejs.javascript | |
| org.htmlunit.corejs.javascript.optimizer |
| Modifier and Type | Method and Description |
|---|---|
static CompilerEnvirons |
CompilerEnvirons.ideEnvirons()
Returns a
CompilerEnvirons suitable for using Rhino in an IDE environment. |
| Modifier and Type | Method and Description |
|---|---|
Object |
Interpreter.compile(CompilerEnvirons compilerEnv,
ScriptNode tree,
String encodedSource,
boolean returnFunction) |
Object |
Evaluator.compile(CompilerEnvirons compilerEnv,
ScriptNode tree,
String encodedSource,
boolean returnFunction)
Compile the script or function from intermediate representation tree into an executable form.
|
void |
NodeTransformer.transform(ScriptNode tree,
boolean inStrictMode,
CompilerEnvirons env) |
void |
NodeTransformer.transform(ScriptNode tree,
CompilerEnvirons env) |
| Constructor and Description |
|---|
IRFactory(CompilerEnvirons env) |
IRFactory(CompilerEnvirons env,
ErrorReporter errorReporter) |
Parser(CompilerEnvirons compilerEnv) |
Parser(CompilerEnvirons compilerEnv,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
CompilerEnvirons |
ClassCompiler.getCompilerEnv()
Get the compiler environment the compiler uses.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Codegen.compile(CompilerEnvirons compilerEnv,
ScriptNode tree,
String encodedSource,
boolean returnFunction) |
byte[] |
Codegen.compileToClassFile(CompilerEnvirons compilerEnv,
String mainClassName,
ScriptNode scriptOrFn,
String encodedSource,
boolean returnFunction) |
| Constructor and Description |
|---|
ClassCompiler(CompilerEnvirons compilerEnv)
Construct ClassCompiler that uses the specified compiler environment when generating classes.
|
Copyright © 2023 HtmlUnit. All rights reserved.