Modifier and Type | Method and Description |
---|---|
IRubyObject |
Ruby.evalScriptlet(String script,
DynamicScope scope)
Evaluates a script under the current scope (perhaps the top-level
scope) and returns the result (generally the last value calculated).
|
Node |
Ruby.parse(org.jruby.util.ByteList content,
String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation) |
Node |
Ruby.parse(String content,
String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation)
Deprecated.
|
Node |
Ruby.parseEval(org.jruby.util.ByteList content,
String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseEval(String content,
String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseFile(InputStream in,
String file,
DynamicScope scope) |
Node |
Ruby.parseFile(InputStream in,
String file,
DynamicScope scope,
int lineNumber) |
ParseResult |
Ruby.parseFile(String file,
InputStream in,
DynamicScope scope) |
ParseResult |
Ruby.parseFile(String file,
InputStream in,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseFileFromMain(InputStream in,
String file,
DynamicScope scope) |
ParseResult |
Ruby.parseFileFromMain(String file,
InputStream in,
DynamicScope scope) |
Node |
Ruby.parseInline(InputStream in,
String file,
DynamicScope scope) |
Modifier and Type | Method and Description |
---|---|
DynamicScope |
RootNode.getScope()
Return the dynamic scope for this AST.
|
Constructor and Description |
---|
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode) |
Modifier and Type | Method and Description |
---|---|
DynamicScope |
IRScriptBody.getToplevelScope() |
Modifier and Type | Method and Description |
---|---|
void |
IRScriptBody.setTopLevelBindingScope(DynamicScope tlbScope) |
Modifier and Type | Method and Description |
---|---|
Object |
SearchConstInstr.cache(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
IRubyObject |
RuntimeHelperCall.callHelper(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp,
Block.Type blockType) |
void |
CheckForLJEInstr.check(ThreadContext context,
DynamicScope dynamicScope,
Block.Type blockType) |
Object |
ZSuperInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
YieldInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
UnresolvedSuperInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
UndefMethodInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
TraceInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ToAryInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ThrowExceptionInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ThreadPollInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
StoreLocalVarInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
SetCapturedVarInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
SearchConstInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
RestArgMultipleAsgnInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
RescueEQQInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ReqdArgMultipleAsgnInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ReifyClosureInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
RecordEndBlockInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
RaiseRequiredKeywordArgumentError.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
RaiseArgumentErrorInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
PutGlobalVarInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
PutFieldInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
PutConstInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
PutClassVariableInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ProcessModuleBodyInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
OptArgMultipleAsgnInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
NopInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
MatchInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
Match3Instr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
Match2Instr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
LoadLocalVarInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
LexicalSearchConstInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
Instr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
InstanceSuperInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
InheritanceSearchConstInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
GVarAliasInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
GetGlobalVariableInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
GetEncodingInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
GetClassVariableInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
GetClassVarContainerModuleInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
EQQInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
DefineModuleInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
DefineMetaClassInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
DefineInstanceMethodInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
DefineClassMethodInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
DefineClassInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ConstMissingInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
ClassSuperInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
CheckArgsArrayArityInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
CallBase.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
BuildSplatInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
BuildRangeInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
BuildLambdaInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
BuildDynRegExpInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
BuildCompoundStringInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
BuildCompoundArrayInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
BlockGivenInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
BacktickInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
AttrAssignInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
ArgScopeDepthInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
AliasInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
int |
ModuleVersionGuardInstr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
int |
Instr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
int |
BUndefInstr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
int |
BTrueInstr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
int |
BNilInstr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
int |
BNEInstr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
int |
BFalseInstr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
int |
BEQInstr.interpretAndGetNewIPC(ThreadContext context,
DynamicScope currDynScope,
StaticScope currScope,
IRubyObject self,
Object[] temp,
int ipc) |
protected IRubyObject[] |
CallBase.prepareArguments(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope dynamicScope,
Object[] temp) |
protected IRubyObject[] |
CallBase.prepareArgumentsComplex(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
protected IRubyObject[] |
CallBase.prepareArgumentsSimple(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Block |
CallBase.prepareBlock(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Modifier and Type | Method and Description |
---|---|
Object |
RestoreErrorInfoInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Object |
GetErrorInfoInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp) |
Modifier and Type | Method and Description |
---|---|
Object |
ZeroOperandArgNoBlockCallInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
OneOperandArgNoBlockNoResultCallInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
OneOperandArgNoBlockCallInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
OneOperandArgBlockCallInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
OneFloatArgNoBlockCallInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
OneFixnumArgNoBlockCallInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Object |
OneArgOperandAttrAssignInstr.interpret(ThreadContext context,
StaticScope currScope,
DynamicScope dynamicScope,
IRubyObject self,
Object[] temp) |
Modifier and Type | Method and Description |
---|---|
DynamicScope |
InterpreterContext.newDynamicScope(ThreadContext context)
Get a new dynamic scope.
|
DynamicScope |
ClosureInterpreterContext.newDynamicScope(ThreadContext context)
Blocks have more complicated logic for pushing a dynamic scope (see InterpretedIRBlockBody).
|
Modifier and Type | Method and Description |
---|---|
protected static void |
InterpreterEngine.processCall(ThreadContext context,
Instr instr,
Operation operation,
DynamicScope currDynScope,
StaticScope currScope,
Object[] temp,
IRubyObject self) |
protected static void |
StartupInterpreterEngine.processOtherOp(ThreadContext context,
Instr instr,
Operation operation,
DynamicScope currDynScope,
StaticScope currScope,
Object[] temp,
IRubyObject self,
Block.Type blockType) |
protected static void |
InterpreterEngine.processOtherOp(ThreadContext context,
Instr instr,
Operation operation,
DynamicScope currDynScope,
StaticScope currScope,
Object[] temp,
IRubyObject self,
Block.Type blockType,
double[] floats,
long[] fixnums,
boolean[] booleans) |
protected static IRubyObject |
InterpreterEngine.processReturnOp(ThreadContext context,
Instr instr,
Operation operation,
DynamicScope currDynScope,
Object[] temp,
IRubyObject self,
Block.Type blockType,
StaticScope currScope) |
protected static void |
InterpreterEngine.receiveArg(ThreadContext context,
Instr i,
Operation operation,
IRubyObject[] args,
boolean acceptsKeywordArgument,
DynamicScope currDynScope,
Object[] temp,
Object exception,
Block block) |
protected static Object |
InterpreterEngine.retrieveOp(Operand r,
ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
StaticScope currScope,
Object[] temp) |
protected static void |
InterpreterEngine.setResult(Object[] temp,
DynamicScope currDynScope,
Instr instr,
Object result) |
protected static void |
InterpreterEngine.setResult(Object[] temp,
DynamicScope currDynScope,
Variable resultVar,
Object result) |
Modifier and Type | Method and Description |
---|---|
Object |
WrappedIRClosure.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
UnexecutableNil.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
UndefinedValue.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
TemporaryLocalVariable.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
SValue.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
StringLiteral.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
Splat.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
Self.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
ScopeModule.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
Operand.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
ObjectClass.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
NthRef.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
LocalVariable.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
ImmutableLiteral.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp)
retrieve the live value represented by this immutable literal.
|
Object |
Hash.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
GlobalVariable.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
FrozenString.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
DynamicSymbol.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
CurrentScope.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
Backref.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
AsString.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Object |
Array.retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
Modifier and Type | Field and Description |
---|---|
DynamicScope |
IRReturnJump.methodToReturnFrom |
DynamicScope |
IRBreakJump.scopeToReturnTo |
Modifier and Type | Method and Description |
---|---|
static void |
IRRuntimeHelpers.checkForLJE(ThreadContext context,
DynamicScope dynScope,
boolean maybeLambda,
Block.Type blockType) |
static IRBreakJump |
IRBreakJump.create(DynamicScope scopeToReturnTo,
IRubyObject rv) |
static IRReturnJump |
IRReturnJump.create(DynamicScope scope,
Object rv) |
static void |
IRRuntimeHelpers.defCompiledInstanceMethod(ThreadContext context,
java.lang.invoke.MethodHandle handle,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static void |
IRRuntimeHelpers.defCompiledInstanceMethod(ThreadContext context,
java.lang.invoke.MethodHandle variable,
java.lang.invoke.MethodHandle specific,
int specificArity,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static void |
IRRuntimeHelpers.defCompiledIRMethod(ThreadContext context,
java.lang.invoke.MethodHandle handle,
String rubyName,
DynamicScope currDynScope,
IRubyObject self,
IRScope irScope) |
static void |
IRRuntimeHelpers.defineAlias(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
String newNameString,
String oldNameString) |
static void |
IRRuntimeHelpers.defInterpretedInstanceMethod(ThreadContext context,
IRScope method,
DynamicScope currDynScope,
IRubyObject self) |
static RubyModule |
IRRuntimeHelpers.findInstanceMethodContainer(ThreadContext context,
DynamicScope currDynScope,
IRubyObject self) |
static IRubyObject |
IRRuntimeHelpers.handleBreakAndReturnsInLambdas(ThreadContext context,
StaticScope scope,
DynamicScope dynScope,
Object exc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handleNonlocalReturn(StaticScope scope,
DynamicScope dynScope,
Object rjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handlePropagatedBreak(ThreadContext context,
DynamicScope dynScope,
Object bjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.initiateBreak(ThreadContext context,
DynamicScope dynScope,
IRubyObject breakValue,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.initiateNonLocalReturn(ThreadContext context,
DynamicScope dynScope,
Block.Type blockType,
IRubyObject returnValue) |
static IRubyObject |
IRRuntimeHelpers.undefMethod(ThreadContext context,
Object nameArg,
DynamicScope currDynScope,
IRubyObject self) |
Modifier and Type | Method and Description |
---|---|
DynamicScope |
StaticScope.getDummyScope() |
DynamicScope |
RubyParserResult.getScope() |
DynamicScope |
ParserConfiguration.getScope()
This method returns the appropriate first scope for the parser.
|
Modifier and Type | Method and Description |
---|---|
Node |
Parser.parse(String file,
byte[] content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(String file,
org.jruby.util.ByteList content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(String file,
InputStream content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(String file,
LexerSource lexerSource,
DynamicScope blockScope,
ParserConfiguration configuration) |
void |
ParserConfiguration.parseAsBlock(DynamicScope existingScope)
If we are performing an eval we should pass existing scope in.
|
void |
RubyParserResult.setScope(DynamicScope scope) |
Modifier and Type | Field and Description |
---|---|
protected DynamicScope |
DynamicScope.evalScope |
protected DynamicScope |
DynamicScope.parent |
Modifier and Type | Method and Description |
---|---|
abstract DynamicScope |
DynamicScope.cloneScope() |
DynamicScope |
ThreadContext.getCurrentScope() |
DynamicScope |
Binding.getDummyScope(StaticScope staticScope) |
DynamicScope |
Binding.getDynamicScope()
Gets the dynamicVariables that are local to this block.
|
DynamicScope |
Binding.getEvalScope(Ruby runtime) |
DynamicScope |
DynamicScope.getFlipScope()
Find the scope to use for flip-flops.
|
DynamicScope |
DynamicScope.getNextCapturedScope()
Deprecated.
|
DynamicScope |
DynamicScope.getNthParentScope(int n)
Returns the n-th parent scope of this scope.
|
DynamicScope |
DynamicScope.getParentScope()
Get parent (capturing) scope.
|
static DynamicScope |
DynamicScope.newDummyScope(StaticScope staticScope,
DynamicScope parent) |
static DynamicScope |
DynamicScope.newDynamicScope(StaticScope staticScope) |
static DynamicScope |
DynamicScope.newDynamicScope(StaticScope staticScope,
DynamicScope parent) |
static DynamicScope |
DynamicScope.newDynamicScope(StaticScope staticScope,
DynamicScope parent,
EvalType evalType) |
Modifier and Type | Method and Description |
---|---|
static Block |
MethodBlock.createMethodBlock(ThreadContext context,
IRubyObject self,
DynamicScope dynamicScope,
MethodBlock body) |
Binding |
ThreadContext.currentBinding(IRubyObject self,
DynamicScope scope)
Return a binding representing the current call's state but with the
specified scope and self.
|
Binding |
ThreadContext.currentBinding(IRubyObject self,
Visibility visibility,
DynamicScope scope)
Return a binding representing the current call's state but with the
specified visibility, scope, and self.
|
static Block |
CompiledSharedScopeBlock.newCompiledSharedScopeClosure(ThreadContext context,
IRubyObject self,
Arity arity,
DynamicScope dynamicScope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
static DynamicScope |
DynamicScope.newDummyScope(StaticScope staticScope,
DynamicScope parent) |
static DynamicScope |
DynamicScope.newDynamicScope(StaticScope staticScope,
DynamicScope parent) |
static DynamicScope |
DynamicScope.newDynamicScope(StaticScope staticScope,
DynamicScope parent,
EvalType evalType) |
void |
ThreadContext.preEvalScriptlet(DynamicScope scope) |
void |
ThreadContext.preScopedBody(DynamicScope scope) |
Frame |
ThreadContext.preYieldLightBlock(Binding binding,
DynamicScope emptyScope) |
void |
ThreadContext.pushScope(DynamicScope scope) |
boolean |
ThreadContext.scopeExistsOnCallStack(DynamicScope scope)
Check if a static scope is present on the call stack.
|
Constructor and Description |
---|
Binding(Frame frame,
DynamicScope dynamicScope,
BacktraceElement backtrace)
Deprecated.
|
Binding(Frame frame,
DynamicScope dynamicScope,
String method,
String filename,
int line) |
Binding(IRubyObject self,
Frame frame,
Visibility visibility,
DynamicScope dynamicScope,
BacktraceElement backtrace)
Deprecated.
|
Binding(IRubyObject self,
Frame frame,
Visibility visibility,
DynamicScope dynamicScope,
String method,
String filename,
int line) |
DynamicScope(StaticScope staticScope,
DynamicScope parent) |
Modifier and Type | Class and Description |
---|---|
class |
DummyDynamicScope
This is a DynamicScope that does not support any variables.
|
class |
FourVarDynamicScope
This is a DynamicScope that supports exactly four variables.
|
class |
ManyVarsDynamicScope
Represents the the dynamic portion of scoping information.
|
class |
NoVarsDynamicScope
This is a DynamicScope that does not support any variables.
|
class |
OneVarDynamicScope
This is a DynamicScope that supports exactly three variables.
|
class |
SharedBindingDynamicScope |
class |
ThreeVarDynamicScope
This is a DynamicScope that supports exactly three variables.
|
class |
TwoVarDynamicScope
This is a DynamicScope that supports exactly three variables.
|
Modifier and Type | Method and Description |
---|---|
DynamicScope |
TwoVarDynamicScope.cloneScope() |
DynamicScope |
ThreeVarDynamicScope.cloneScope() |
DynamicScope |
SharedBindingDynamicScope.cloneScope() |
DynamicScope |
OneVarDynamicScope.cloneScope() |
DynamicScope |
NoVarsDynamicScope.cloneScope() |
DynamicScope |
ManyVarsDynamicScope.cloneScope() |
DynamicScope |
FourVarDynamicScope.cloneScope() |
DynamicScope |
DummyDynamicScope.cloneScope() |
Constructor and Description |
---|
DummyDynamicScope(StaticScope staticScope,
DynamicScope parent) |
FourVarDynamicScope(StaticScope staticScope,
DynamicScope parent) |
ManyVarsDynamicScope(StaticScope staticScope,
DynamicScope parent) |
NoVarsDynamicScope(StaticScope staticScope,
DynamicScope parent) |
OneVarDynamicScope(StaticScope staticScope,
DynamicScope parent) |
ThreeVarDynamicScope(StaticScope staticScope,
DynamicScope parent) |
TwoVarDynamicScope(StaticScope staticScope,
DynamicScope parent) |
Copyright © 2001-2015 JRuby. All Rights Reserved.