| Modifier and Type | Field and Description |
|---|---|
| private EvalType | |
| private boolean | |
| protected final DynamicScope | |
| protected final StaticScope |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public DynamicScope | |
| public DynamicScope | Returns: a duplicate of this scope with all the current valuesBinding needs to clone its scope with all the current values. |
| public final String[] | Returns: a list of variable namesGet all variable names captured (visible) by this scope (sans $~ and $_). |
| public EvalType | |
| public DynamicScope | |
| public DynamicScope | Returns: The n-th parent scope ornull.- number of levels above to look. n)Returns the n-th parent scope of this scope. |
| public final DynamicScope | |
| public final StaticScope | Returns: static complement to this scopeGet the static scope associated with this DynamicScope. |
| public abstract IRubyObject | Returns: the value herezero-indexed value that represents where variable lives offset, int how many captured scopes down this variable should be set depth)Get value from current scope or one of its captured scopes. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | getValueOrNil(int offset, int depth, IRubyObject nil)
Variation of getValue that checks for nulls, returning and setting the given value (presumably nil) |
| public IRubyObject[] | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if this scope is the nearest return scope, false otherwiseA DynamicScope is the target of a non-local return if it is one of the following: * A method scope * A top-level script scope * A block scope that is either marked as the argument scope (define_method) or a lambda |
| public static DynamicScope | |
| public static DynamicScope | |
| public static DynamicScope | |
| public static DynamicScope | |
| public void | |
| public void | |
| public IRubyObject | setValue(int
zero-indexed value that represents where variable lives offset, IRubyObject to set value, int how many captured scopes down this variable should be set depth)Set value in current dynamic scope or one of its captured scopes. |
| public IRubyObject | setValue(IRubyObject
to set value, int zero-indexed value that represents where variable lives offset, int how many captured scopes down this variable should be set depth)Set value in current dynamic scope or one of its captured scopes. |
| public IRubyObject | setValueDepthZero(IRubyObject
to set value, int zero-indexed value that represents where variable lives offset)setValue for depth zero |
| public void | setValueDepthZeroVoid(IRubyObject
to set value, int zero-indexed value that represents where variable lives offset)setValue for depth zero |
| public void | |
| public void | |
| public void | |
| public void | |
| public IRubyObject | |
| public void | |
| public void | |
| public void | |
| public IRubyObject | |
| public void | |
| public IRubyObject | |
| public void | |
| public abstract void | setValueVoid(IRubyObject
to set value, int zero-indexed value that represents where variable lives offset, int how many captured scopes down this variable should be set depth)Set value in current dynamic scope or one of its captured scopes. |
| public IRubyObject | |
| public void | |
| public String | |
| public String |
| evalType | back to summary |
|---|---|
| private EvalType evalType | |
| lambda | back to summary |
|---|---|
| private boolean lambda | |
| parent | back to summary |
|---|---|
| protected final DynamicScope parent | |
| staticScope | back to summary |
|---|---|
| protected final StaticScope staticScope | |
| DynamicScope | back to summary |
|---|---|
| protected DynamicScope(StaticScope staticScope, DynamicScope parent) | |
| clearEvalType | back to summary |
|---|---|
| public void clearEvalType() | |
| cloneScope | back to summary |
|---|---|
| public DynamicScope cloneScope()
Deprecated
| |
| dupEvalScope | back to summary |
|---|---|
| public DynamicScope dupEvalScope() Binding needs to clone its scope with all the current values.
| |
| getAllNamesInScope | back to summary |
|---|---|
| public final String[] getAllNamesInScope() Get all variable names captured (visible) by this scope (sans $~ and $_).
| |
| getEvalType | back to summary |
|---|---|
| public EvalType getEvalType() | |
| getNextCapturedScope | back to summary |
|---|---|
| public DynamicScope getNextCapturedScope()
Deprecated
| |
| getNthParentScope | back to summary |
|---|---|
| public DynamicScope getNthParentScope(int n) Returns the n-th parent scope of this scope.
May return
| |
| getParentScope | back to summary |
|---|---|
| public final DynamicScope getParentScope() Get parent (capturing) scope. This is used by eval and closures to walk up to hard lexical boundary. | |
| getStaticScope | back to summary |
|---|---|
| public final StaticScope getStaticScope() Get the static scope associated with this DynamicScope.
| |
| getValue | back to summary |
|---|---|
| public abstract IRubyObject getValue(int offset, int depth) Get value from current scope or one of its captured scopes.
| |
| getValueDepthZero | back to summary |
|---|---|
| public IRubyObject getValueDepthZero(int offset) Variation of getValue for depth 0
| |
| getValueDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueDepthZeroOrNil(int offset, IRubyObject nil) getValueOrNil for depth 0 | |
| getValueEightDepthZero | back to summary |
|---|---|
| public IRubyObject getValueEightDepthZero() getValue for index 8, depth 0
| |
| getValueEightDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueEightDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 8, depth 0 | |
| getValueFiveDepthZero | back to summary |
|---|---|
| public IRubyObject getValueFiveDepthZero() getValue for index 5, depth 0
| |
| getValueFiveDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueFiveDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 5, depth 0 | |
| getValueFourDepthZero | back to summary |
|---|---|
| public IRubyObject getValueFourDepthZero() getValue for index 4, depth 0
| |
| getValueFourDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueFourDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 4, depth 0 | |
| getValueNineDepthZero | back to summary |
|---|---|
| public IRubyObject getValueNineDepthZero() getValue for index 9, depth 0
| |
| getValueNineDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueNineDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 9, depth 0 | |
| getValueOneDepthZero | back to summary |
|---|---|
| public IRubyObject getValueOneDepthZero() getValue for index 1, depth 0
| |
| getValueOneDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueOneDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 1, depth 0 | |
| getValueOrNil | back to summary |
|---|---|
| public IRubyObject getValueOrNil(int offset, int depth, IRubyObject nil) Variation of getValue that checks for nulls, returning and setting the given value (presumably nil) | |
| getValues | back to summary |
|---|---|
| public IRubyObject[] getValues() | |
| getValueSevenDepthZero | back to summary |
|---|---|
| public IRubyObject getValueSevenDepthZero() getValue for index 7, depth 0
| |
| getValueSevenDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueSevenDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 7, depth 0 | |
| getValueSixDepthZero | back to summary |
|---|---|
| public IRubyObject getValueSixDepthZero() getValue for index 6, depth 0
| |
| getValueSixDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueSixDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 6, depth 0 | |
| getValueThreeDepthZero | back to summary |
|---|---|
| public IRubyObject getValueThreeDepthZero() getValue for index 3, depth 0
| |
| getValueThreeDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueThreeDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 3, depth 0 | |
| getValueTwoDepthZero | back to summary |
|---|---|
| public IRubyObject getValueTwoDepthZero() getValue for index 2, depth 0
| |
| getValueTwoDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueTwoDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 2, depth 0 | |
| getValueZeroDepthZero | back to summary |
|---|---|
| public IRubyObject getValueZeroDepthZero() getValue for index 0, depth 0
| |
| getValueZeroDepthZeroOrNil | back to summary |
|---|---|
| public IRubyObject getValueZeroDepthZeroOrNil(IRubyObject nil) getValueOrNil for index 0, depth 0 | |
| growIfNeeded | back to summary |
|---|---|
| public void growIfNeeded() | |
| inBindingEval | back to summary |
|---|---|
| public boolean inBindingEval() | |
| inInstanceEval | back to summary |
|---|---|
| public boolean inInstanceEval() | |
| inModuleEval | back to summary |
|---|---|
| public boolean inModuleEval() | |
| isLambda | back to summary |
|---|---|
| public boolean isLambda() | |
| isReturnTarget | back to summary |
|---|---|
| public boolean isReturnTarget() A DynamicScope is the target of a non-local return if it is one of the following: * A method scope * A top-level script scope * A block scope that is either marked as the argument scope (define_method) or a lambda
| |
| newDummyScope | back to summary |
|---|---|
| public static DynamicScope newDummyScope(StaticScope staticScope, DynamicScope parent) | |
| newDynamicScope | back to summary |
|---|---|
| public static DynamicScope newDynamicScope(StaticScope staticScope, DynamicScope parent) | |
| newDynamicScope | back to summary |
|---|---|
| public static DynamicScope newDynamicScope(StaticScope staticScope, DynamicScope parent, EvalType evalType) | |
| newDynamicScope | back to summary |
|---|---|
| public static DynamicScope newDynamicScope(StaticScope staticScope) | |
| setEvalType | back to summary |
|---|---|
| public void setEvalType(EvalType evalType) | |
| setLambda | back to summary |
|---|---|
| public void setLambda(boolean lambda) | |
| setValue | back to summary |
|---|---|
| public IRubyObject setValue(int offset, IRubyObject value, int depth) Set value in current dynamic scope or one of its captured scopes.
| |
| setValue | back to summary |
|---|---|
| public IRubyObject setValue(IRubyObject value, int offset, int depth) Set value in current dynamic scope or one of its captured scopes.
| |
| setValueDepthZero | back to summary |
|---|---|
| public IRubyObject setValueDepthZero(IRubyObject value, int offset) setValue for depth zero
| |
| setValueDepthZeroVoid | back to summary |
|---|---|
| public void setValueDepthZeroVoid(IRubyObject value, int offset) setValue for depth zero
| |
| setValueEightDepthZeroVoid | back to summary |
|---|---|
| public void setValueEightDepthZeroVoid(IRubyObject value) Set value eight in this scope.
| |
| setValueFiveDepthZeroVoid | back to summary |
|---|---|
| public void setValueFiveDepthZeroVoid(IRubyObject value) Set value five in this scope.
| |
| setValueFourDepthZeroVoid | back to summary |
|---|---|
| public void setValueFourDepthZeroVoid(IRubyObject value) Set value four in this scope.
| |
| setValueNineDepthZeroVoid | back to summary |
|---|---|
| public void setValueNineDepthZeroVoid(IRubyObject value) Set value nine in this scope.
| |
| setValueOneDepthZero | back to summary |
|---|---|
| public IRubyObject setValueOneDepthZero(IRubyObject value) Set value one in this scope. | |
| setValueOneDepthZeroVoid | back to summary |
|---|---|
| public void setValueOneDepthZeroVoid(IRubyObject value) Set value one in this scope.
| |
| setValueSevenDepthZeroVoid | back to summary |
|---|---|
| public void setValueSevenDepthZeroVoid(IRubyObject value) Set value seven in this scope.
| |
| setValueSixDepthZeroVoid | back to summary |
|---|---|
| public void setValueSixDepthZeroVoid(IRubyObject value) Set value six in this scope.
| |
| setValueThreeDepthZero | back to summary |
|---|---|
| public IRubyObject setValueThreeDepthZero(IRubyObject value) Set value three in this scope. | |
| setValueThreeDepthZeroVoid | back to summary |
|---|---|
| public void setValueThreeDepthZeroVoid(IRubyObject value) Set value three in this scope.
| |
| setValueTwoDepthZero | back to summary |
|---|---|
| public IRubyObject setValueTwoDepthZero(IRubyObject value) Set value two in this scope. | |
| setValueTwoDepthZeroVoid | back to summary |
|---|---|
| public void setValueTwoDepthZeroVoid(IRubyObject value) Set value two in this scope.
| |
| setValueVoid | back to summary |
|---|---|
| public abstract void setValueVoid(IRubyObject value, int offset, int depth) Set value in current dynamic scope or one of its captured scopes.
| |
| setValueZeroDepthZero | back to summary |
|---|---|
| public IRubyObject setValueZeroDepthZero(IRubyObject value) Set value zero in this scope; | |
| setValueZeroDepthZeroVoid | back to summary |
|---|---|
| public void setValueZeroDepthZeroVoid(IRubyObject value) Set value zero in this scope;
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toString | back to summary |
|---|---|
| public String toString(StringBuffer buf, String indent) | |