public class LocalStaticScope extends StaticScope
StaticScope.Type
enclosingScope
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, setVariables
public LocalStaticScope(StaticScope enclosingScope)
protected LocalStaticScope(StaticScope enclosingScope, String[] names)
public StaticScope getLocalScope()
StaticScope
getLocalScope
in class StaticScope
public int isDefined(String name, int depth)
isDefined
in class StaticScope
public boolean isArgumentScope()
StaticScope
isArgumentScope
in class StaticScope
public void makeArgumentScope()
makeArgumentScope
in class StaticScope
public String[] getAllNamesInScope()
StaticScope
getAllNamesInScope
in class StaticScope
StaticScope.getAllNamesInScope()
public AssignableNode assign(ISourcePosition position, String name, Node value, StaticScope topScope, int depth)
assign
in class StaticScope
public Node declare(ISourcePosition position, String name, int depth)
declare
in class StaticScope
public String toString()
toString
in class StaticScope
public StaticScope.Type getType()
getType
in class StaticScope
Copyright © 2001-2016 JRuby. All Rights Reserved.