public class BlockStaticScope extends StaticScope
enclosingScope| Constructor and Description |
|---|
BlockStaticScope(StaticScope parentScope) |
BlockStaticScope(StaticScope parentScope,
java.lang.String[] names) |
| Modifier and Type | Method and Description |
|---|---|
AssignableNode |
addAssign(ISourcePosition position,
java.lang.String name,
Node value) |
protected AssignableNode |
assign(ISourcePosition position,
java.lang.String name,
Node value,
StaticScope topScope,
int depth) |
Node |
declare(ISourcePosition position,
java.lang.String name,
int depth) |
java.lang.String[] |
getAllNamesInScope()
Get all visible variables that we can see from this scope that have been assigned
(e.g.
|
StaticScope |
getLocalScope()
Gets the Local Scope relative to the current Scope.
|
boolean |
isArgumentScope()
Argument scopes represent scopes which contain arguments for zsuper.
|
int |
isDefined(java.lang.String name,
int depth) |
void |
makeArgumentScope() |
java.lang.String |
toString() |
addVariable, addVariableThisScope, assign, capture, declare, determineModule, exists, getArity, getConstant, getConstantWithConstMissing, getDummyScope, getEnclosingScope, getModule, getNumberOfVariables, getOptionalArgs, getPreviousCRefScope, getRequiredArgs, getRestArg, getVariables, isBackrefLastlineScope, isCaptured, isDefined, setArities, setBackrefLastlineScope, setModule, setPreviousCRefScope, setRequiredArgs, setRestArg, setVariablespublic BlockStaticScope(StaticScope parentScope)
public BlockStaticScope(StaticScope parentScope, java.lang.String[] names)
public StaticScope getLocalScope()
StaticScopegetLocalScope in class StaticScopepublic int isDefined(java.lang.String name,
int depth)
isDefined in class StaticScopepublic boolean isArgumentScope()
StaticScopeisArgumentScope in class StaticScopepublic void makeArgumentScope()
makeArgumentScope in class StaticScopepublic java.lang.String[] getAllNamesInScope()
StaticScopegetAllNamesInScope in class StaticScopeStaticScope.getAllNamesInScope()protected AssignableNode assign(ISourcePosition position, java.lang.String name, Node value, StaticScope topScope, int depth)
assign in class StaticScopepublic AssignableNode addAssign(ISourcePosition position, java.lang.String name, Node value)
public Node declare(ISourcePosition position, java.lang.String name, int depth)
declare in class StaticScopepublic java.lang.String toString()
toString in class StaticScopeCopyright © 2002-2009 JRuby Team. All Rights Reserved.