public class Scope extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Scope(ASTCssNode owner,
List<String> names) |
protected |
Scope(ASTCssNode owner,
List<String> names,
Scope parent) |
protected |
Scope(ASTCssNode owner,
String name) |
protected Scope(ASTCssNode owner, List<String> names, Scope parent)
protected Scope(ASTCssNode owner, List<String> names)
protected Scope(ASTCssNode owner, String name)
public Scope getParent()
public boolean hasParent()
public void registerVariable(AbstractVariableDeclaration declaration)
public void registerVariable(AbstractVariableDeclaration node, Expression replacementValue)
public void registerVariableIfNotPresent(String name, Expression replacementValue)
public Expression getValue(Variable variable)
public Expression getValue(String name)
public void registerMixin(ReusableStructure mixin, Scope mixinsBodyScope)
public List<FullMixinDefinition> getNearestMixins(ReusableStructureName name)
public List<FullMixinDefinition> getNearestMixins(MixinReference reference, ProblemsHandler problemsHandler)
public static Scope createDefaultScope(ASTCssNode owner)
public static Scope createUnnamedScope(ASTCssNode owner, Scope parent)
public static Scope createScope(ASTCssNode owner, List<String> names, Scope parent)
public static Scope createScope(ASTCssNode owner, String name, Scope parent)
public String toLongString()
public Scope copyWithChildChain()
public Scope copyWithParentsChain()
public void setParent(Scope parent)
public void removedFromTree()
public boolean isPresentInTree()
public Scope getRootScope()
public Scope getChildOwnerOf(ASTCssNode body)
Copyright © 2012-2013. All Rights Reserved.