public class Stylesheet extends Object
| Constructor and Description |
|---|
Stylesheet(String name)
Creates a new stylesheet with the given name
|
| Modifier and Type | Method and Description |
|---|---|
void |
addImport(String name)
Adds an import
|
void |
addMixin(Mixin mixin)
Adds a mixin
|
void |
addSection(Section section)
Adds a section
|
void |
addVariable(Variable variable)
Adds a variable
|
List<String> |
getImports()
Returns all imports in the stylesheet
|
List<Mixin> |
getMixins()
Returns all mixins in the stylesheet
|
String |
getName()
Returns the name of the stylesheet
|
List<Section> |
getSections()
Returns all sections in the stylesheet
|
List<Variable> |
getVariables()
Returns all variables in the stylesheet
|
String |
toString() |
public Stylesheet(String name)
name - the name of the stylesheetpublic void addImport(String name)
name - the name of the file to be importedpublic void addVariable(Variable variable)
variable - the variable to be added to the stylesheetpublic void addSection(Section section)
section - the section to be added to the stylesheetpublic void addMixin(Mixin mixin)
mixin - the mixin to addpublic List<Variable> getVariables()
public List<Mixin> getMixins()
public List<Section> getSections()
public List<String> getImports()
public String getName()
Copyright © 2016. All rights reserved.