public class Scope extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Scope(String type,
ASTCssNode owner,
List<String> names) |
protected |
Scope(String type,
ASTCssNode owner,
List<String> names,
Scope parent) |
protected |
Scope(String type,
ASTCssNode owner,
String name) |
protected Scope(String type, ASTCssNode owner, List<String> names, Scope parent)
protected Scope(String type, ASTCssNode owner, List<String> names)
protected Scope(String type, 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 void registerVariable(String name, Expression replacementValue)
public void fillByFilteredVariables(ExpressionFilter filter, Scope source)
public void addAllMixins(List<FullMixinDefinition> mixins)
public void add(Scope otherSope)
public Expression getValue(Variable variable)
public Expression getValue(String name)
public void registerMixin(ReusableStructure mixin, Scope mixinsBodyScope)
public void createPlaceholder()
public void addToPlaceholder(Scope otherScope)
public void closePlaceholder()
public List<FullMixinDefinition> getNearestMixins(ReusableStructureName name)
public List<FullMixinDefinition> getAllMixins()
public List<FullMixinDefinition> getNearestMixins(MixinReference reference, ProblemsHandler problemsHandler)
public static Scope createDefaultScope(ASTCssNode owner)
public static Scope createScope(ASTCssNode owner, Scope parent)
public static Scope createBodyOwnerScope(ASTCssNode owner, Scope parent)
public static Scope createDummyScope()
public static Scope createDummyScope(ASTCssNode owner, String name)
public String toLongString()
public Scope copyWithChildChain()
public Scope copyWithParentsChain()
public Scope copyWholeTree()
public void insertAsParent(Scope parent)
public void setParent(Scope parent)
public void removedFromTree()
public boolean isPresentInTree()
public Scope getRootScope()
public boolean seesLocalDataOf(Scope otherScope)
public Scope getChildOwnerOf(ASTCssNode body)
public Scope childByOwners(ASTCssNode headNode, ASTCssNode... restNodes)
protected void createLocalDataSnapshot()
InScopeSnapshotRunner instead.protected void discardLastLocalDataSnapshot()
InScopeSnapshotRunner instead.public void createDataClone()
Copyright © 2012-2013. All Rights Reserved.