public class LocalStaticScope extends StaticScope
StaticScope.TypeenclosingScope| Modifier | Constructor and Description |
|---|---|
|
LocalStaticScope(StaticScope enclosingScope) |
protected |
LocalStaticScope(StaticScope enclosingScope,
String[] names) |
| Modifier and Type | Method and Description |
|---|---|
AssignableNode |
assign(ISourcePosition position,
String name,
Node value,
StaticScope topScope,
int depth) |
Node |
declare(ISourcePosition position,
String name,
int depth) |
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.
|
StaticScope.Type |
getType() |
boolean |
isArgumentScope()
Argument scopes represent scopes which contain arguments for zsuper.
|
int |
isDefined(String name,
int depth) |
void |
makeArgumentScope() |
String |
toString() |
addVariable, addVariableThisScope, assign, declare, determineModule, exists, getArity, getConstant, getConstantInner, getConstantWithConstMissing, getDummyScope, getEnclosingScope, getModule, getNumberOfVariables, getOptionalArgs, getPreviousCRefScope, getRequiredArgs, getRestArg, getVariables, isBlockScope, isConstantDefined, isDefined, setArities, setConstant, setModule, setPreviousCRefScope, setRequiredArgs, setRestArg, setVariablespublic LocalStaticScope(StaticScope enclosingScope)
protected LocalStaticScope(StaticScope enclosingScope, String[] names)
public StaticScope getLocalScope()
StaticScopegetLocalScope in class StaticScopepublic int isDefined(String name, int depth)
isDefined in class StaticScopepublic boolean isArgumentScope()
StaticScopeisArgumentScope in class StaticScopepublic void makeArgumentScope()
makeArgumentScope in class StaticScopepublic String[] getAllNamesInScope()
StaticScopegetAllNamesInScope in class StaticScopeStaticScope.getAllNamesInScope()public AssignableNode assign(ISourcePosition position, String name, Node value, StaticScope topScope, int depth)
assign in class StaticScopepublic Node declare(ISourcePosition position, String name, int depth)
declare in class StaticScopepublic String toString()
toString in class StaticScopepublic StaticScope.Type getType()
getType in class StaticScopeCopyright © 2001-2013 JRuby. All Rights Reserved.