|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.ScssContext
public class ScssContext
| Nested Class Summary | |
|---|---|
static class |
ScssContext.UrlMode
Url mode specifies how urls appearing in an scss style sheet are interpreted. |
| Constructor Summary | |
|---|---|
ScssContext()
|
|
ScssContext(ScssContext.UrlMode urlMode)
|
|
| Method Summary | |
|---|---|
void |
addExtension(Extension extension)
|
void |
addVariable(Variable node)
Add a scope specific local variable, typically a function or mixin parameter. |
void |
closeVariableScope()
End a scope for variables, removing all active variables that only existed in the new scope. |
void |
closeVariableScope(Scope newScope)
End a scope for variables, removing all active variables that only existed in the new scope. |
void |
defineFunction(FunctionDefNode function)
|
void |
defineMixin(MixinDefNode mixin)
|
Scope |
getCurrentScope()
Returns the current scope. |
Iterable<Extension> |
getExtensions()
|
FunctionDefNode |
getFunctionDefinition(String name)
|
MixinDefNode |
getMixinDefinition(String name)
|
ScssContext.UrlMode |
getUrlMode()
|
Variable |
getVariable(String string)
|
Iterable<Variable> |
getVariables()
|
void |
openVariableScope()
Start a new scope for variables. |
Scope |
openVariableScope(Scope parent)
Switch to a new sub-scope of a specific scope. |
void |
setUrlMode(ScssContext.UrlMode urlMode)
|
void |
setVariable(Variable node)
Set the value of a variable that may be in the innermost scope or an outer scope. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScssContext()
public ScssContext(ScssContext.UrlMode urlMode)
| Method Detail |
|---|
public void defineFunction(FunctionDefNode function)
public void defineMixin(MixinDefNode mixin)
public Scope openVariableScope(Scope parent)
closeVariableScope(Scope) with the return value of this method
as its parameter.
public void closeVariableScope(Scope newScope)
public Scope getCurrentScope()
openVariableScope(Scope).
public void openVariableScope()
public void closeVariableScope()
public void setVariable(Variable node)
node - variable to setpublic void addVariable(Variable node)
node - variable to addpublic Variable getVariable(String string)
public Iterable<Variable> getVariables()
public MixinDefNode getMixinDefinition(String name)
public FunctionDefNode getFunctionDefinition(String name)
public void addExtension(Extension extension)
public Iterable<Extension> getExtensions()
public ScssContext.UrlMode getUrlMode()
public void setUrlMode(ScssContext.UrlMode urlMode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||