public class ManyVarsDynamicScope extends DynamicScope
| Modifier and Type | Field and Description |
|---|---|
static java.lang.invoke.MethodHandle |
CONSTRUCTOR |
parent, staticScope| Constructor and Description |
|---|
ManyVarsDynamicScope(StaticScope staticScope,
DynamicScope parent) |
| Modifier and Type | Method and Description |
|---|---|
DynamicScope |
cloneScope()
Deprecated.
|
IRubyObject |
getValue(int offset,
int depth)
Get value from current scope or one of its captured scopes.
|
IRubyObject |
getValueDepthZero(int offset)
Variation of getValue for depth 0
|
IRubyObject |
getValueDepthZeroOrNil(int offset,
IRubyObject nil)
getValueOrNil for depth 0
|
IRubyObject |
getValueOneDepthZero()
getValue for index 1, depth 0
|
IRubyObject |
getValueOneDepthZeroOrNil(IRubyObject nil)
getValueOrNil for index 1, depth 0
|
IRubyObject |
getValueOrNil(int offset,
int depth,
IRubyObject nil)
Variation of getValue that checks for nulls, returning and setting the given value (presumably nil)
|
IRubyObject[] |
getValues() |
IRubyObject |
getValueThreeDepthZero()
getValue for index 3, depth 0
|
IRubyObject |
getValueThreeDepthZeroOrNil(IRubyObject nil)
getValueOrNil for index 3, depth 0
|
IRubyObject |
getValueTwoDepthZero()
getValue for index 2, depth 0
|
IRubyObject |
getValueTwoDepthZeroOrNil(IRubyObject nil)
getValueOrNil for index 2, depth 0
|
IRubyObject |
getValueZeroDepthZero()
getValue for index 0, depth 0
|
IRubyObject |
getValueZeroDepthZeroOrNil(IRubyObject nil)
getValueOrNil for index 0, depth 0
|
void |
growIfNeeded()
Make a larger dynamic scope if the static scope grew.
|
void |
setValueDepthZeroVoid(IRubyObject value,
int offset)
setValue for depth zero
|
void |
setValueEightDepthZeroVoid(IRubyObject value)
Set value eight in this scope.
|
void |
setValueFiveDepthZeroVoid(IRubyObject value)
Set value five in this scope.
|
void |
setValueFourDepthZeroVoid(IRubyObject value)
Set value four in this scope.
|
void |
setValueNineDepthZeroVoid(IRubyObject value)
Set value nine in this scope.
|
void |
setValueOneDepthZeroVoid(IRubyObject value)
Set value one in this scope.
|
void |
setValueSevenDepthZeroVoid(IRubyObject value)
Set value seven in this scope.
|
void |
setValueSixDepthZeroVoid(IRubyObject value)
Set value six in this scope.
|
void |
setValueThreeDepthZeroVoid(IRubyObject value)
Set value three in this scope.
|
void |
setValueTwoDepthZeroVoid(IRubyObject value)
Set value two in this scope.
|
void |
setValueVoid(IRubyObject value,
int offset,
int depth)
Set value in current dynamic scope or one of its captured scopes.
|
void |
setValueZeroDepthZeroVoid(IRubyObject value)
Set value zero in this scope;
|
clearEvalType, getAllNamesInScope, getEvalType, getFlipScope, getNextCapturedScope, getNthParentScope, getParentScope, getStaticScope, getValueEightDepthZero, getValueEightDepthZeroOrNil, getValueFiveDepthZero, getValueFiveDepthZeroOrNil, getValueFourDepthZero, getValueFourDepthZeroOrNil, getValueNineDepthZero, getValueNineDepthZeroOrNil, getValueSevenDepthZero, getValueSevenDepthZeroOrNil, getValueSixDepthZero, getValueSixDepthZeroOrNil, inBindingEval, inInstanceEval, inModuleEval, isLambda, newDummyScope, newDynamicScope, newDynamicScope, newDynamicScope, setEvalType, setLambda, setValue, setValue, setValueDepthZero, setValueOneDepthZero, setValueThreeDepthZero, setValueTwoDepthZero, setValueZeroDepthZero, toString, toStringpublic ManyVarsDynamicScope(StaticScope staticScope, DynamicScope parent)
public IRubyObject[] getValues()
getValues in class DynamicScopepublic IRubyObject getValue(int offset, int depth)
getValue in class DynamicScopeoffset - zero-indexed value that represents where variable livesdepth - how many captured scopes down this variable should be setpublic IRubyObject getValueDepthZero(int offset)
DynamicScopegetValueDepthZero in class DynamicScopepublic IRubyObject getValueZeroDepthZero()
DynamicScopegetValueZeroDepthZero in class DynamicScopepublic IRubyObject getValueOneDepthZero()
DynamicScopegetValueOneDepthZero in class DynamicScopepublic IRubyObject getValueTwoDepthZero()
DynamicScopegetValueTwoDepthZero in class DynamicScopepublic IRubyObject getValueThreeDepthZero()
DynamicScopegetValueThreeDepthZero in class DynamicScopepublic IRubyObject getValueOrNil(int offset, int depth, IRubyObject nil)
getValueOrNil in class DynamicScopepublic IRubyObject getValueDepthZeroOrNil(int offset, IRubyObject nil)
DynamicScopegetValueDepthZeroOrNil in class DynamicScopepublic IRubyObject getValueZeroDepthZeroOrNil(IRubyObject nil)
DynamicScopegetValueZeroDepthZeroOrNil in class DynamicScopepublic IRubyObject getValueOneDepthZeroOrNil(IRubyObject nil)
DynamicScopegetValueOneDepthZeroOrNil in class DynamicScopepublic IRubyObject getValueTwoDepthZeroOrNil(IRubyObject nil)
DynamicScopegetValueTwoDepthZeroOrNil in class DynamicScopepublic IRubyObject getValueThreeDepthZeroOrNil(IRubyObject nil)
DynamicScopegetValueThreeDepthZeroOrNil in class DynamicScopepublic void setValueVoid(IRubyObject value, int offset, int depth)
setValueVoid in class DynamicScopeoffset - zero-indexed value that represents where variable livesvalue - to setdepth - how many captured scopes down this variable should be setpublic void setValueDepthZeroVoid(IRubyObject value, int offset)
DynamicScopesetValueDepthZeroVoid in class DynamicScopevalue - to setoffset - zero-indexed value that represents where variable livespublic void setValueZeroDepthZeroVoid(IRubyObject value)
DynamicScopesetValueZeroDepthZeroVoid in class DynamicScopepublic void setValueOneDepthZeroVoid(IRubyObject value)
DynamicScopesetValueOneDepthZeroVoid in class DynamicScopepublic void setValueTwoDepthZeroVoid(IRubyObject value)
DynamicScopesetValueTwoDepthZeroVoid in class DynamicScopepublic void setValueThreeDepthZeroVoid(IRubyObject value)
DynamicScopesetValueThreeDepthZeroVoid in class DynamicScopepublic void setValueFourDepthZeroVoid(IRubyObject value)
DynamicScopesetValueFourDepthZeroVoid in class DynamicScopepublic void setValueFiveDepthZeroVoid(IRubyObject value)
DynamicScopesetValueFiveDepthZeroVoid in class DynamicScopepublic void setValueSixDepthZeroVoid(IRubyObject value)
DynamicScopesetValueSixDepthZeroVoid in class DynamicScopepublic void setValueSevenDepthZeroVoid(IRubyObject value)
DynamicScopesetValueSevenDepthZeroVoid in class DynamicScopepublic void setValueEightDepthZeroVoid(IRubyObject value)
DynamicScopesetValueEightDepthZeroVoid in class DynamicScopepublic void setValueNineDepthZeroVoid(IRubyObject value)
DynamicScopesetValueNineDepthZeroVoid in class DynamicScopepublic void growIfNeeded()
growIfNeeded in class DynamicScope@Deprecated public DynamicScope cloneScope()
cloneScope in class DynamicScopeCopyright © 2001-2018 JRuby. All Rights Reserved.