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, toString
public ManyVarsDynamicScope(StaticScope staticScope, DynamicScope parent)
public IRubyObject[] getValues()
getValues
in class DynamicScope
public IRubyObject getValue(int offset, int depth)
getValue
in class DynamicScope
offset
- zero-indexed value that represents where variable livesdepth
- how many captured scopes down this variable should be setpublic IRubyObject getValueDepthZero(int offset)
DynamicScope
getValueDepthZero
in class DynamicScope
public IRubyObject getValueZeroDepthZero()
DynamicScope
getValueZeroDepthZero
in class DynamicScope
public IRubyObject getValueOneDepthZero()
DynamicScope
getValueOneDepthZero
in class DynamicScope
public IRubyObject getValueTwoDepthZero()
DynamicScope
getValueTwoDepthZero
in class DynamicScope
public IRubyObject getValueThreeDepthZero()
DynamicScope
getValueThreeDepthZero
in class DynamicScope
public IRubyObject getValueOrNil(int offset, int depth, IRubyObject nil)
getValueOrNil
in class DynamicScope
public IRubyObject getValueDepthZeroOrNil(int offset, IRubyObject nil)
DynamicScope
getValueDepthZeroOrNil
in class DynamicScope
public IRubyObject getValueZeroDepthZeroOrNil(IRubyObject nil)
DynamicScope
getValueZeroDepthZeroOrNil
in class DynamicScope
public IRubyObject getValueOneDepthZeroOrNil(IRubyObject nil)
DynamicScope
getValueOneDepthZeroOrNil
in class DynamicScope
public IRubyObject getValueTwoDepthZeroOrNil(IRubyObject nil)
DynamicScope
getValueTwoDepthZeroOrNil
in class DynamicScope
public IRubyObject getValueThreeDepthZeroOrNil(IRubyObject nil)
DynamicScope
getValueThreeDepthZeroOrNil
in class DynamicScope
public void setValueVoid(IRubyObject value, int offset, int depth)
setValueVoid
in class DynamicScope
offset
- 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)
DynamicScope
setValueDepthZeroVoid
in class DynamicScope
value
- to setoffset
- zero-indexed value that represents where variable livespublic void setValueZeroDepthZeroVoid(IRubyObject value)
DynamicScope
setValueZeroDepthZeroVoid
in class DynamicScope
public void setValueOneDepthZeroVoid(IRubyObject value)
DynamicScope
setValueOneDepthZeroVoid
in class DynamicScope
public void setValueTwoDepthZeroVoid(IRubyObject value)
DynamicScope
setValueTwoDepthZeroVoid
in class DynamicScope
public void setValueThreeDepthZeroVoid(IRubyObject value)
DynamicScope
setValueThreeDepthZeroVoid
in class DynamicScope
public void setValueFourDepthZeroVoid(IRubyObject value)
DynamicScope
setValueFourDepthZeroVoid
in class DynamicScope
public void setValueFiveDepthZeroVoid(IRubyObject value)
DynamicScope
setValueFiveDepthZeroVoid
in class DynamicScope
public void setValueSixDepthZeroVoid(IRubyObject value)
DynamicScope
setValueSixDepthZeroVoid
in class DynamicScope
public void setValueSevenDepthZeroVoid(IRubyObject value)
DynamicScope
setValueSevenDepthZeroVoid
in class DynamicScope
public void setValueEightDepthZeroVoid(IRubyObject value)
DynamicScope
setValueEightDepthZeroVoid
in class DynamicScope
public void setValueNineDepthZeroVoid(IRubyObject value)
DynamicScope
setValueNineDepthZeroVoid
in class DynamicScope
public void growIfNeeded()
growIfNeeded
in class DynamicScope
@Deprecated public DynamicScope cloneScope()
cloneScope
in class DynamicScope
Copyright © 2001-2017 JRuby. All Rights Reserved.