public class BlockStaticScope extends StaticScope
StaticScope.TypeenclosingScope| Modifier | Constructor and Description |
|---|---|
protected |
BlockStaticScope(StaticScope parentScope) |
protected |
BlockStaticScope(StaticScope parentScope,
String[] names) |
| Modifier and Type | Method and Description |
|---|---|
AssignableNode |
addAssign(ISourcePosition position,
String name,
Node value) |
protected 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.
|
boolean |
isBlockScope() |
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, isConstantDefined, isDefined, setArities, setConstant, setModule, setPreviousCRefScope, setRequiredArgs, setRestArg, setVariablesprotected BlockStaticScope(StaticScope parentScope)
protected BlockStaticScope(StaticScope parentScope, 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 boolean isBlockScope()
isBlockScope in class StaticScopepublic String[] getAllNamesInScope()
StaticScopegetAllNamesInScope in class StaticScopeStaticScope.getAllNamesInScope()protected AssignableNode assign(ISourcePosition position, String name, Node value, StaticScope topScope, int depth)
assign in class StaticScopepublic AssignableNode addAssign(ISourcePosition position, String name, Node value)
public 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.