public interface ScriptCompiler
Modifier and Type | Method and Description |
---|---|
void |
endScript(boolean generateLoad,
boolean generateMain)
End compilation for the current script, closing all context and structures
used for the compilation.
|
BodyCompiler |
startFileMethod(CompilerCallback args,
StaticScope scope,
ASTInspector inspector)
Begin compilation for the root of a script named __file__.
|
BodyCompiler |
startMethod(String rubyName,
String javaName,
CompilerCallback argsHandler,
StaticScope scope,
ASTInspector inspector,
int scopeIndex)
Begin compilation for a method that has the specified number of local variables.
|
void |
startScript(StaticScope scope)
Begin compilation for a script, preparing all necessary context and code
to support this script's compiled representation.
|
void startScript(StaticScope scope)
void endScript(boolean generateLoad, boolean generateMain)
BodyCompiler startMethod(String rubyName, String javaName, CompilerCallback argsHandler, StaticScope scope, ASTInspector inspector, int scopeIndex)
rubyName
- javaName
- argsHandler
- scope
- inspector
- BodyCompiler startFileMethod(CompilerCallback args, StaticScope scope, ASTInspector inspector)
args
- Arguments to the script, as passed via jitted wrappersscope
- The StaticScope for the scriptinspector
- The ASTInspector for the nodes for the scriptCopyright © 2001-2014 JRuby. All Rights Reserved.