|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.Scope
public class Scope
Nestable scope for variables, functions and mixins.
| Constructor Summary | |
|---|---|
Scope()
|
|
Scope(Scope parent)
|
|
| Method Summary | |
|---|---|
void |
addVariable(Variable node)
Sets a variable in the current scope without checking parent scopes. |
void |
defineFunction(FunctionDefNode function)
|
void |
defineMixin(MixinDefNode mixin)
|
FunctionDefNode |
getFunctionDefinition(String name)
|
MixinDefNode |
getMixinDefinition(String name)
|
Scope |
getParent()
|
Variable |
getVariable(String name)
|
Iterable<Variable> |
getVariables()
Returns an Iterable of all variables defined in this scope and
its parents. |
void |
setVariable(Variable node)
Sets a variable value in the largest scope where it is already defined. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Scope()
public Scope(Scope parent)
| Method Detail |
|---|
public Scope getParent()
public void setVariable(Variable node)
node - variable to setpublic void addVariable(Variable node)
node - variable to setpublic Variable getVariable(String name)
public Iterable<Variable> getVariables()
Iterable of all variables defined in this scope and
its parents. Variables that are masked by a similarly named copy in an
inner scope are not returned, but only the innermost instance is used.
public void defineFunction(FunctionDefNode function)
public void defineMixin(MixinDefNode mixin)
public FunctionDefNode getFunctionDefinition(String name)
public MixinDefNode getMixinDefinition(String name)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||