|
Groovy 1.8.4 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.VariableScope
public class VariableScope extends Object
Represents a variable scope. This is primarily used to determine variable sharing across method and closure boundaries.
Constructor Summary | |
VariableScope()
|
|
VariableScope(VariableScope parent)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public VariableScope()
public VariableScope(VariableScope parent)
Method Detail |
---|
public VariableScope copy()
public ClassNode getClassScope()
public Variable getDeclaredVariable(String name)
public VariableScope getParent()
public Variable getReferencedClassVariable(String name)
public Map getReferencedClassVariables()
public Iterator getReferencedClassVariablesIterator()
public Variable getReferencedLocalVariable(String name)
public int getReferencedLocalVariablesCount()
public Iterator getReferencedLocalVariablesIterator()
public boolean isClassScope()
public boolean isInStaticContext()
public boolean isReferencedClassVariable(String name)
public boolean isReferencedLocalVariable(String name)
@Deprecated public boolean isResolvingDynamic()
public boolean isRoot()
public void putDeclaredVariable(Variable var)
public void putReferencedClassVariable(Variable var)
public void putReferencedLocalVariable(Variable var)
public Object removeReferencedClassVariable(String name)
public void setClassScope(ClassNode node)
@Deprecated public void setDynamicResolving(boolean resolvesDynamic)
public void setInStaticContext(boolean inStaticContext)
Copyright © 2003-2011 The Codehaus. All rights reserved.