Skip navigation links
A B C D E F G H I L M N O P R S T V W 

A

add(Expression) - Method in class org.serversass.ast.ValueList
Adds the given element to the list.
addAttribute(Attribute) - Method in class org.serversass.ast.Mixin
Adds an attribute
addAttribute(Attribute) - Method in class org.serversass.ast.Section
Adds an attribute to this section.
addExtends(String) - Method in class org.serversass.ast.Section
Adds an extend instruction.
addImport(String) - Method in class org.serversass.ast.Stylesheet
Adds an import
addMediaQuery(Expression) - Method in class org.serversass.ast.Section
Adds a media query to this section.
addMixin(Mixin) - Method in class org.serversass.ast.Stylesheet
Adds a mixin
addMixinReference(MixinReference) - Method in class org.serversass.ast.Section
Adds a mixin instruction.
addParameter(Expression) - Method in class org.serversass.ast.FunctionCall
Adds the given expression as parameter
addParameter(String) - Method in class org.serversass.ast.Mixin
Adds a parameter of the mixin
addParameter(Expression) - Method in class org.serversass.ast.MixinReference
Adds an expression as parameter
addSection(Section) - Method in class org.serversass.ast.Stylesheet
Adds a section
addSubSection(Section) - Method in class org.serversass.ast.Mixin
Adds a sub section.
addSubSection(Section) - Method in class org.serversass.ast.Section
Adds a sub section.
addVariable(Variable) - Method in class org.serversass.ast.Stylesheet
Adds a variable
adjusthue(Generator, FunctionCall) - Static method in class org.serversass.Functions
Adjusts the hue of the given color by the given number of degrees.
appendNameAndParameters(StringBuilder, String, List<Expression>) - Static method in class org.serversass.ast.FunctionCall
Appends the name and parameters to the given string builder.
Attribute - Class in org.serversass.ast
Represents an attribute within a section like: font-size: 15px;
Attribute(String) - Constructor for class org.serversass.ast.Attribute
Creates a new attribute with the given name

B

baseDir - Variable in class org.serversass.Generator
 

C

Color - Class in org.serversass.ast
Represents a color like #565656.
Color(String) - Constructor for class org.serversass.ast.Color
Creates a new RGB color based on the given hex string
Color(int, int, int) - Constructor for class org.serversass.ast.Color
Creates a new RGB color based on the given values for red, green and blue.
Color(int, int, int, double) - Constructor for class org.serversass.ast.Color
Creates a new RGB color withl alpha channel (transparency)
Color(int, double, double, double) - Constructor for class org.serversass.ast.Color
Creates a color based on the given HSL values.
Color.HSL - Class in org.serversass.ast
Value class to represent a hue, saturation, lightness triple.
compile() - Method in class org.serversass.Generator
Compiles the parsed sources.
compileMixins(Section) - Method in class org.serversass.Generator
 

D

darken(Generator, FunctionCall) - Static method in class org.serversass.Functions
Decreases the lightness of the given color by N percent.
debug(String) - Method in class org.serversass.Generator
Contains a message which might be helpful in development systems but are generally not of great interest in production systems.
decIndent() - Method in class org.serversass.Output
Decrements the indentation.
desaturate(Generator, FunctionCall) - Static method in class org.serversass.Functions
Decreases the saturation of the given color by N percent.

E

EPSILON - Static variable in class org.serversass.ast.Color
Used to determine "equality" for floating point numbers
eval(Scope, Generator) - Method in class org.serversass.ast.Color
 
eval(Scope, Generator) - Method in interface org.serversass.ast.Expression
If possible the expression is evaluated and a simplified expression is returned.
eval(Scope, Generator) - Method in class org.serversass.ast.FunctionCall
 
eval(Scope, Generator) - Method in class org.serversass.ast.MediaFilter
 
eval(Scope, Generator) - Method in class org.serversass.ast.NamedParameter
 
eval(Scope, Generator) - Method in class org.serversass.ast.Number
 
eval(Scope, Generator) - Method in class org.serversass.ast.Operation
 
eval(Scope, Generator) - Method in class org.serversass.ast.Value
 
eval(Scope, Generator) - Method in class org.serversass.ast.ValueList
 
eval(Scope, Generator) - Method in class org.serversass.ast.VariableReference
 
evalOperation(Generator, double, double) - Method in class org.serversass.ast.Operation
 
evaluateFunction(FunctionCall) - Method in class org.serversass.Generator
Evaluates the given function.
Expression - Interface in org.serversass.ast
Base class for all AST classes
extensibleSections - Variable in class org.serversass.Generator
 

F

FunctionCall - Class in org.serversass.ast
Represents a function call like "lighten(#FFFFF, 1)".
FunctionCall() - Constructor for class org.serversass.ast.FunctionCall
 
Functions - Class in org.serversass
Contains all functions which can be called from sass.

G

generate(Output) - Method in class org.serversass.ast.Section
Generates the final output into the given parameter.
generate(Output) - Method in class org.serversass.Generator
Generates the final output into the given parameter.
Generator - Class in org.serversass
Generates CSS code from one or more SASS stylesheets.
Generator() - Constructor for class org.serversass.Generator
Generates a new Generator without a directory used for lookups.
Generator(File) - Constructor for class org.serversass.Generator
Generates a new Generator using the given directory for lookups.
get(String) - Method in class org.serversass.Scope
Returns the value previously set for the given variable.
getAttributes() - Method in class org.serversass.ast.Mixin
Returns all attributes defined by the mixin
getAttributes() - Method in class org.serversass.ast.Section
Returns a list of all attributes.
getColor() - Method in class org.serversass.ast.Color.HSL
Converts the color back to a new RGB color.
getContents() - Method in class org.serversass.ast.Value
Returns the represented value
getElements() - Method in class org.serversass.ast.ValueList
Returns the contents of the value list.
getExpectedColorParam(int) - Method in class org.serversass.ast.FunctionCall
Returns the parameter casted as a Color at the expected index.
getExpectedFloatParam(int) - Method in class org.serversass.ast.FunctionCall
Returns the parameter at the expected index converted to an float.
getExpectedIntParam(int) - Method in class org.serversass.ast.FunctionCall
Returns the parameter at the expected index converted to an int.
getExpectedParam(int) - Method in class org.serversass.ast.FunctionCall
Returns the parameter at the expected index.
getExpression() - Method in class org.serversass.ast.Attribute
Returns the expression representing the value of the attribute
getExpression() - Method in class org.serversass.ast.MediaFilter
Returns the filter expression.
getExtendedSections() - Method in class org.serversass.ast.Section
Returns a list of all extended sections.
getH() - Method in class org.serversass.ast.Color.HSL
Returns the hue.
getHSL() - Method in class org.serversass.ast.Color
Computes the HSL value form the stored RGB values.
getImports() - Method in class org.serversass.ast.Stylesheet
Returns all imports in the stylesheet
getL() - Method in class org.serversass.ast.Color.HSL
Returns the lightness.
getLeft() - Method in class org.serversass.ast.Operation
Returns the left side of the operation.
getMediaQuery(Scope, Generator) - Method in class org.serversass.ast.Section
Compiles the effective media query of this section into a string
getMixins() - Method in class org.serversass.ast.Stylesheet
Returns all mixins in the stylesheet
getName() - Method in class org.serversass.ast.Attribute
Returns the name of the attribute without the trailing ":"
getName() - Method in class org.serversass.ast.FunctionCall
Returns the name of the function.
getName() - Method in class org.serversass.ast.MediaFilter
Returns the name of the attribute being filtered on
getName() - Method in class org.serversass.ast.Mixin
Returns the name of the mixin
getName() - Method in class org.serversass.ast.MixinReference
Returns the name of the referenced mixin
getName() - Method in class org.serversass.ast.Stylesheet
Returns the name of the stylesheet
getName() - Method in class org.serversass.ast.Variable
Returns the name of the variable.
getName() - Method in class org.serversass.ast.VariableReference
Returns the name of the variable.
getNumericValue() - Method in class org.serversass.ast.Number
The exact numeric value used to computations
getOperation() - Method in class org.serversass.ast.Operation
Returns the operator of this operation.
getParameters() - Method in class org.serversass.ast.FunctionCall
Returns all parameters of the function
getParameters() - Method in class org.serversass.ast.Mixin
Returns all parameters of the mixin
getParameters() - Method in class org.serversass.ast.MixinReference
Returns all parameters
getReferences() - Method in class org.serversass.ast.Section
Returns a list of all referenced mixins.
getRight() - Method in class org.serversass.ast.Operation
Returns the right side of the operation.
getS() - Method in class org.serversass.ast.Color.HSL
Returns the saturation.
getSections() - Method in class org.serversass.ast.Stylesheet
Returns all sections in the stylesheet
getSelectors() - Method in class org.serversass.ast.Section
Returns a list of all parsed selector chains.
getSelectorString() - Method in class org.serversass.ast.Section
Compiles the effective selector string.
getSubSections() - Method in class org.serversass.ast.Mixin
Returns a list of all sub sections.
getSubSections() - Method in class org.serversass.ast.Section
Returns a list of all sub sections.
getUnit() - Method in class org.serversass.ast.Number
The unit of the number or "" if there is no unit.
getValue() - Method in class org.serversass.ast.Number
Returns the string representation of the numeric value
getValue() - Method in class org.serversass.ast.Variable
Returns the value of the variable
getVariables() - Method in class org.serversass.ast.Stylesheet
Returns all variables in the stylesheet

H

has(String) - Method in class org.serversass.Scope
Determines if this scope has a value set for the given variable.

I

importedSheets - Variable in class org.serversass.Generator
 
importStylesheet(String) - Method in class org.serversass.Generator
Instructs the generator to include a scss file.
importStylesheet(Stylesheet) - Method in class org.serversass.Generator
Imports an already parsed stylesheet.
incIndent() - Method in class org.serversass.Output
Increments the indentation.
indentDepth - Variable in class org.serversass.Output
 
indentLevel - Variable in class org.serversass.Output
 
isConstant() - Method in class org.serversass.ast.Color
 
isConstant() - Method in interface org.serversass.ast.Expression
Determines if this expression is constant or if it depends on variables.
isConstant() - Method in class org.serversass.ast.FunctionCall
 
isConstant() - Method in class org.serversass.ast.MediaFilter
 
isConstant() - Method in class org.serversass.ast.NamedParameter
 
isConstant() - Method in class org.serversass.ast.Number
 
isConstant() - Method in class org.serversass.ast.Operation
 
isConstant() - Method in class org.serversass.ast.Value
 
isConstant() - Method in class org.serversass.ast.ValueList
 
isConstant() - Method in class org.serversass.ast.VariableReference
 
isDefaultValue() - Method in class org.serversass.ast.Variable
Defines if the given value is a default only.
isProtect() - Method in class org.serversass.ast.Operation
Determines if the operation is guarded by braces and most not be re-ordered by operator precedence.

L

lighten(Generator, FunctionCall) - Static method in class org.serversass.Functions
Increases the lightness of the given color by N percent.
lineBreak() - Method in class org.serversass.Output
Outputs an indented line break in any case.

M

MediaFilter - Class in org.serversass.ast
Represents an attribute filter used in a media query like "(min-width: 13px)".
MediaFilter(String) - Constructor for class org.serversass.ast.MediaFilter
Creates a new media filter for the given attribute (without ":").
mediaQueries - Variable in class org.serversass.Generator
 
Mixin - Class in org.serversass.ast
Defines a parsed mixin.
Mixin() - Constructor for class org.serversass.ast.Mixin
 
MixinReference - Class in org.serversass.ast
Represents a reference to a mixin generated by an include instruction.
MixinReference() - Constructor for class org.serversass.ast.MixinReference
 
mixins - Variable in class org.serversass.Generator
 

N

NamedParameter - Class in org.serversass.ast
Represents a named parameter of a function call.
NamedParameter(String, Expression) - Constructor for class org.serversass.ast.NamedParameter
Creates a new parameter for the given name and value.
Number - Class in org.serversass.ast
Represents a number, which might possibly also have a unit like "px" or "%".
Number(double, String, String) - Constructor for class org.serversass.ast.Number
Creates a number with a known exact value, a string representation and a unit (might be "")
Number(String) - Constructor for class org.serversass.ast.Number
Creates a new number based on the givens string.

O

Operation - Class in org.serversass.ast
Represents a binary operation.
Operation(String, Expression, Expression) - Constructor for class org.serversass.ast.Operation
Creates a new operation, with the given operator and the left and right expression.
optionalLineBreak() - Method in class org.serversass.Output
Outputs an indented line break or a " " in case of minified output.
org.serversass - package org.serversass
 
org.serversass.ast - package org.serversass.ast
 
Output - Class in org.serversass
Output layer used to generate more or less formatted output.
Output(Writer, boolean) - Constructor for class org.serversass.Output
Creates a new output for the given writer and output settings.
output(Object) - Method in class org.serversass.Output
Outputs the given value as string.

P

parse() - Method in class org.serversass.Parser
Parses the given input returning the parsed stylesheet.
Parser - Class in org.serversass
Parses a given SASS source into a Stylesheet.
Parser(String, Reader) - Constructor for class org.serversass.Parser
Creates a new tokenizer parsing the input with the given name.
protect() - Method in class org.serversass.ast.Operation
Marks that this expression is guarded by braces so that operator precedence does not matter.

R

resolve(String) - Method in class org.serversass.Generator
Resolves a given name into a template.
resolveIntoStream(String) - Method in class org.serversass.Generator
Resolves the given file name into an InputStream
rgb(Generator, FunctionCall) - Static method in class org.serversass.Functions
Creates a color from given RGB values.
rgba(Generator, FunctionCall) - Static method in class org.serversass.Functions
Creates a color from given RGB and alpha values.

S

saturate(Generator, FunctionCall) - Static method in class org.serversass.Functions
Increases the saturation of the given color by N percent.
scope - Variable in class org.serversass.Generator
 
Scope - Class in org.serversass
Represents a map which binds values to variable names.
Scope() - Constructor for class org.serversass.Scope
Creates a new and empty scope without a parent scope
Scope(Scope) - Constructor for class org.serversass.Scope
Creates a new and empty scope using the given parameter as parent scope.
Section - Class in org.serversass.ast
Represents a section which is a list of selectors and a group of attributes.
Section() - Constructor for class org.serversass.ast.Section
 
sections - Variable in class org.serversass.Generator
 
set(String, Expression) - Method in class org.serversass.Scope
Sets a variable in this scope.
setDefaultValue(boolean) - Method in class org.serversass.ast.Variable
Sets if the variable was defined using "!
setExpression(Expression) - Method in class org.serversass.ast.Attribute
Sets the expression representing the value of the attribute
setExpression(Expression) - Method in class org.serversass.ast.MediaFilter
Sets the filter expression
setH(int) - Method in class org.serversass.ast.Color.HSL
Updates the hue.
setL(double) - Method in class org.serversass.ast.Color.HSL
Updates the lightness.
setName(String) - Method in class org.serversass.ast.FunctionCall
Sets the name of the function
setName(String) - Method in class org.serversass.ast.Mixin
Sets the name of the mixin
setName(String) - Method in class org.serversass.ast.MixinReference
Sets the name of the referenced mixin
setName(String) - Method in class org.serversass.ast.Variable
Sets the name of the variable (without $).
setRight(Expression) - Method in class org.serversass.ast.Operation
Sets the right side of the operation.
setS(double) - Method in class org.serversass.ast.Color.HSL
Updates the saturation.
setValue(Expression) - Method in class org.serversass.ast.Variable
Sets the value of the variable.
skipOptionalOutput - Variable in class org.serversass.Output
 
Stylesheet - Class in org.serversass.ast
Represents a completely parsed SCSS file.
Stylesheet(String) - Constructor for class org.serversass.ast.Stylesheet
Creates a new stylesheet with the given name

T

toString() - Method in class org.serversass.ast.Attribute
 
toString() - Method in class org.serversass.ast.Color
 
toString() - Method in class org.serversass.ast.FunctionCall
 
toString() - Method in class org.serversass.ast.MediaFilter
 
toString() - Method in class org.serversass.ast.MixinReference
 
toString() - Method in class org.serversass.ast.NamedParameter
 
toString() - Method in class org.serversass.ast.Number
 
toString() - Method in class org.serversass.ast.Operation
 
toString() - Method in class org.serversass.ast.Section
 
toString() - Method in class org.serversass.ast.Stylesheet
 
toString() - Method in class org.serversass.ast.Value
 
toString() - Method in class org.serversass.ast.ValueList
 
toString() - Method in class org.serversass.ast.Variable
 
toString() - Method in class org.serversass.ast.VariableReference
 
toString() - Method in class org.serversass.Generator
 
toString() - Method in class org.serversass.Output
 

V

Value - Class in org.serversass.ast
Represents a plain value.
Value(String) - Constructor for class org.serversass.ast.Value
Creates a new value representing the given contents a value.
ValueList - Class in org.serversass.ast
Represents a list of values.
ValueList(boolean) - Constructor for class org.serversass.ast.ValueList
Creates a new and empty value list
Variable - Class in org.serversass.ast
Represents a variable definition like "$test: 'Hello'"
Variable() - Constructor for class org.serversass.ast.Variable
 
VariableReference - Class in org.serversass.ast
References a variable like "$test".
VariableReference(String) - Constructor for class org.serversass.ast.VariableReference
Creates a new reference for the given variable.

W

warn(String) - Method in class org.serversass.Generator
Called to signal a warning, like an invalid operation or parse errors in a source file.
writer - Variable in class org.serversass.Output
 
A B C D E F G H I L M N O P R S T V W 
Skip navigation links

Copyright © 2016. All rights reserved.