|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
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)
public void setInStaticContext(boolean inStaticContext)
Copyright © 2003-2013 The Codehaus. All rights reserved.