public class FourVarDynamicScope extends ThreeVarDynamicScope
| Modifier and Type | Field and Description |
|---|---|
protected IRubyObject |
variableValueThree |
variableValueTwovariableValueOnevariableValueZeroevalScope, parent, staticScope| Constructor and Description |
|---|
FourVarDynamicScope(StaticScope staticScope) |
FourVarDynamicScope(StaticScope staticScope,
DynamicScope parent) |
| Modifier and Type | Method and Description |
|---|---|
DynamicScope |
cloneScope() |
IRubyObject[] |
getArgValues()
Copy variable values back for ZSuper call.
|
IRubyObject |
getValue(int offset,
int depth)
Get value from current scope or one of its captured scopes.
|
IRubyObject |
getValueDepthZeroOrNil(int offset,
IRubyObject nil)
getValueOrNil for 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 |
getValueThreeDepthZeroOrNil(IRubyObject nil)
getValueOrNil for index 3, depth 0
|
void |
growIfNeeded() |
void |
setArgValues(IRubyObject arg0) |
void |
setArgValues(IRubyObject[] values,
int size)
Set all values which represent 'normal' parameters in a call list to this dynamic
scope.
|
void |
setArgValues(IRubyObject arg0,
IRubyObject arg1) |
void |
setArgValues(IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
void |
setEndArgValues(IRubyObject[] values,
int index,
int size) |
IRubyObject |
setValue(int offset,
IRubyObject value,
int depth)
Set value in current dynamic scope or one of its captured scopes.
|
IRubyObject |
setValueDepthZero(IRubyObject value,
int offset)
setValue for depth zero
|
IRubyObject |
setValueThreeDepthZero(IRubyObject value)
Set value three in this scope.
|
getValueTwoDepthZeroOrNil, setValueTwoDepthZerogetValueOneDepthZeroOrNil, setValueOneDepthZerogetValueZeroDepthZeroOrNil, setValueZeroDepthZerogrowIfNeededgetAllNamesInScope, getEvalScope, getFlipScope, getNextCapturedScope, getNthParentScope, getStaticScope, newDummyScope, newDynamicScope, newDynamicScope, setArgValues, setArgValues, setArgValues, setArgValues, setArgValues, setArgValues, setArgValues, setArgValues, setValue, toString, toStringprotected IRubyObject variableValueThree
public FourVarDynamicScope(StaticScope staticScope, DynamicScope parent)
public FourVarDynamicScope(StaticScope staticScope)
public void growIfNeeded()
growIfNeeded in class ThreeVarDynamicScopepublic DynamicScope cloneScope()
cloneScope in class ThreeVarDynamicScopepublic IRubyObject[] getValues()
getValues in class ThreeVarDynamicScopepublic IRubyObject getValue(int offset, int depth)
getValue in class ThreeVarDynamicScopeoffset - zero-indexed value that represents where variable livesdepth - how many captured scopes down this variable should be setpublic IRubyObject getValueOrNil(int offset, int depth, IRubyObject nil)
getValueOrNil in class ThreeVarDynamicScopepublic IRubyObject getValueDepthZeroOrNil(int offset, IRubyObject nil)
DynamicScopegetValueDepthZeroOrNil in class ThreeVarDynamicScopepublic IRubyObject getValueThreeDepthZeroOrNil(IRubyObject nil)
DynamicScopegetValueThreeDepthZeroOrNil in class NoVarsDynamicScopepublic IRubyObject setValue(int offset, IRubyObject value, int depth)
setValue in class ThreeVarDynamicScopeoffset - zero-indexed value that represents where variable livesvalue - to setdepth - how many captured scopes down this variable should be setpublic IRubyObject setValueDepthZero(IRubyObject value, int offset)
DynamicScopesetValueDepthZero in class ThreeVarDynamicScopevalue - to setoffset - zero-indexed value that represents where variable livespublic IRubyObject setValueThreeDepthZero(IRubyObject value)
DynamicScopesetValueThreeDepthZero in class NoVarsDynamicScopepublic void setArgValues(IRubyObject[] values, int size)
setArgValues in class ThreeVarDynamicScopevalues - up to size specified to be mapped as ordinary parm valuessize - is the number of values to assign as ordinary parm valuespublic void setEndArgValues(IRubyObject[] values, int index, int size)
setEndArgValues in class ThreeVarDynamicScopevalues - group where last n(size) values are usedindex - index in the dynamic scope to start setting these valuessize - which of the last size arguments of values parameter to setpublic void setArgValues(IRubyObject arg0)
setArgValues in class ThreeVarDynamicScopepublic void setArgValues(IRubyObject arg0, IRubyObject arg1)
setArgValues in class ThreeVarDynamicScopepublic void setArgValues(IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
setArgValues in class ThreeVarDynamicScopepublic IRubyObject[] getArgValues()
DynamicScopegetArgValues in class ThreeVarDynamicScopeCopyright © 2001-2013 JRuby. All Rights Reserved.