Package | Description |
---|---|
org.jruby | |
org.jruby.ast | |
org.jruby.interpreter | |
org.jruby.javasupport.util | |
org.jruby.parser | |
org.jruby.runtime | |
org.jruby.runtime.scope |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
Ruby.evalScriptlet(java.lang.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,
java.lang.String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation) |
Node |
Ruby.parse(java.lang.String content,
java.lang.String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation)
Deprecated.
|
Node |
Ruby.parseEval(org.jruby.util.ByteList content,
java.lang.String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseEval(java.lang.String content,
java.lang.String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseFile(java.io.InputStream in,
java.lang.String file,
DynamicScope scope) |
Node |
Ruby.parseFile(java.io.InputStream in,
java.lang.String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseFileFromMain(java.io.InputStream in,
java.lang.String file,
DynamicScope scope) |
Node |
Ruby.parseInline(java.io.InputStream in,
java.lang.String file,
DynamicScope scope) |
Modifier and Type | Method and Description |
---|---|
DynamicScope |
RootNode.getScope()
Return the dynamic scope for this AST.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ArgsNode.prepareOptOrRestArgs(ThreadContext context,
Ruby runtime,
DynamicScope scope,
IRubyObject self,
IRubyObject[] args) |
protected void |
ArgsNode.prepareRestArg(ThreadContext context,
Ruby runtime,
DynamicScope scope,
IRubyObject[] args,
int givenArgsCount) |
protected void |
ArgsNode.processBlockArg(DynamicScope scope,
Ruby runtime,
Block block) |
Constructor and Description |
---|
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode) |
Modifier and Type | Field and Description |
---|---|
protected DynamicScope |
NaiveInterpreterContext.currDynScope |
Modifier and Type | Method and Description |
---|---|
DynamicScope |
InterpreterContext.getSharedBindingScope() |
DynamicScope |
NaiveInterpreterContext.getSharedBindingScope() |
Modifier and Type | Method and Description |
---|---|
void |
InterpreterContext.setDynamicScope(DynamicScope s) |
void |
NaiveInterpreterContext.setDynamicScope(DynamicScope s) |
Modifier and Type | Method and Description |
---|---|
static void |
RuntimeHelpers.updateScopeWithCaptures(ThreadContext context,
DynamicScope scope,
int[] scopeOffsets,
IRubyObject result) |
Modifier and Type | Method and Description |
---|---|
DynamicScope |
StaticScope.getDummyScope() |
DynamicScope |
ParserConfiguration.getScope()
This method returns the appropriate first scope for the parser.
|
DynamicScope |
RubyParserResult.getScope() |
Modifier and Type | Method and Description |
---|---|
Node |
Parser.parse(java.lang.String file,
byte[] content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(java.lang.String file,
org.jruby.util.ByteList content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(java.lang.String file,
java.io.InputStream content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(java.lang.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 |
DynamicScope.getEvalScope() |
DynamicScope |
DynamicScope.getFlipScope()
Find the scope to use for flip-flops.
|
DynamicScope |
DynamicScope.getNextCapturedScope()
Get next 'captured' scope.
|
DynamicScope |
DynamicScope.getNthParentScope(int n)
Returns the n-th parent scope of this scope.
|
DynamicScope |
ThreadContext.getPreviousScope() |
static DynamicScope |
DynamicScope.newDummyScope(StaticScope staticScope,
DynamicScope parent) |
static DynamicScope |
DynamicScope.newDynamicScope(StaticScope staticScope) |
static DynamicScope |
DynamicScope.newDynamicScope(StaticScope staticScope,
DynamicScope parent) |
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 Block |
SharedScopeBlock.newInterpretedSharedScopeClosure(ThreadContext context,
IterNode iterNode,
DynamicScope dynamicScope,
IRubyObject self) |
void |
ThreadContext.preEvalScriptlet(DynamicScope scope) |
void |
ThreadContext.preScopedBody(DynamicScope scope) |
Frame |
ThreadContext.preYieldLightBlock(Binding binding,
DynamicScope emptyScope,
RubyModule klass) |
void |
ThreadContext.pushScope(DynamicScope scope) |
Constructor and Description |
---|
Binding(Frame frame,
RubyModule bindingClass,
DynamicScope dynamicScope,
BacktraceElement backtrace) |
Binding(IRubyObject self,
Frame frame,
Visibility visibility,
RubyModule klass,
DynamicScope dynamicScope,
BacktraceElement backtrace) |
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 |
DummyDynamicScope.cloneScope() |
DynamicScope |
FourVarDynamicScope.cloneScope() |
DynamicScope |
ManyVarsDynamicScope.cloneScope() |
DynamicScope |
NoVarsDynamicScope.cloneScope() |
DynamicScope |
OneVarDynamicScope.cloneScope() |
DynamicScope |
SharedBindingDynamicScope.cloneScope() |
DynamicScope |
ThreeVarDynamicScope.cloneScope() |
DynamicScope |
TwoVarDynamicScope.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 © 2002-2009 JRuby Team. All Rights Reserved.