| Package | Description |
|---|---|
| org.serversass | |
| org.serversass.ast |
| Modifier and Type | Method and Description |
|---|---|
static Expression |
Functions.adjusthue(Generator generator,
FunctionCall input)
Adjusts the hue of the given color by the given number of degrees.
|
static Expression |
Functions.darken(Generator generator,
FunctionCall input)
Decreases the lightness of the given color by N percent.
|
static Expression |
Functions.desaturate(Generator generator,
FunctionCall input)
Decreases the saturation of the given color by N percent.
|
Expression |
Generator.evaluateFunction(FunctionCall call)
Evaluates the given function.
|
Expression |
Scope.get(String name)
Returns the value previously set for the given variable.
|
static Expression |
Functions.lighten(Generator generator,
FunctionCall input)
Increases the lightness of the given color by N percent.
|
static Expression |
Functions.rgb(Generator generator,
FunctionCall input)
Creates a color from given RGB values.
|
static Expression |
Functions.rgba(Generator generator,
FunctionCall input)
Creates a color from given RGB and alpha values.
|
static Expression |
Functions.saturate(Generator generator,
FunctionCall input)
Increases the saturation of the given color by N percent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Scope.set(String name,
Expression value)
Sets a variable in this scope.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Color
Represents a color like #565656.
|
class |
FunctionCall
Represents a function call like "lighten(#FFFFF, 1)".
|
class |
MediaFilter
Represents an attribute filter used in a media query like "(min-width: 13px)".
|
class |
NamedParameter
Represents a named parameter of a function call.
|
class |
Number
Represents a number, which might possibly also have a unit like "px" or "%".
|
class |
Operation
Represents a binary operation.
|
class |
Value
Represents a plain value.
|
class |
ValueList
Represents a list of values.
|
class |
VariableReference
References a variable like "$test".
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
Number.eval(Scope scope,
Generator gen) |
Expression |
VariableReference.eval(Scope scope,
Generator gen) |
Expression |
Operation.eval(Scope scope,
Generator gen) |
Expression |
ValueList.eval(Scope scope,
Generator gen) |
Expression |
Expression.eval(Scope scope,
Generator gen)
If possible the expression is evaluated and a simplified expression is returned.
|
Expression |
FunctionCall.eval(Scope scope,
Generator gen) |
Expression |
NamedParameter.eval(Scope scope,
Generator gen) |
Expression |
MediaFilter.eval(Scope scope,
Generator gen) |
Expression |
Color.eval(Scope scope,
Generator gen) |
Expression |
Value.eval(Scope scope,
Generator gen) |
Expression |
FunctionCall.getExpectedParam(int index)
Returns the parameter at the expected index.
|
Expression |
Attribute.getExpression()
Returns the expression representing the value of the attribute
|
Expression |
MediaFilter.getExpression()
Returns the filter expression.
|
Expression |
Operation.getLeft()
Returns the left side of the operation.
|
Expression |
Operation.getRight()
Returns the right side of the operation.
|
Expression |
Variable.getValue()
Returns the value of the variable
|
| Modifier and Type | Method and Description |
|---|---|
List<Expression> |
ValueList.getElements()
Returns the contents of the value list.
|
List<Expression> |
FunctionCall.getParameters()
Returns all parameters of the function
|
List<Expression> |
MixinReference.getParameters()
Returns all parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValueList.add(Expression element)
Adds the given element to the list.
|
void |
Section.addMediaQuery(Expression query)
Adds a media query to this section.
|
void |
FunctionCall.addParameter(Expression expression)
Adds the given expression as parameter
|
void |
MixinReference.addParameter(Expression expression)
Adds an expression as parameter
|
void |
Attribute.setExpression(Expression expression)
Sets the expression representing the value of the attribute
|
void |
MediaFilter.setExpression(Expression expression)
Sets the filter expression
|
void |
Operation.setRight(Expression right)
Sets the right side of the operation.
|
void |
Variable.setValue(Expression value)
Sets the value of the variable.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
FunctionCall.appendNameAndParameters(StringBuilder sb,
String name,
List<Expression> parameters)
Appends the name and parameters to the given string builder.
|
| Constructor and Description |
|---|
NamedParameter(String name,
Expression value)
Creates a new parameter for the given name and value.
|
Operation(String operation,
Expression left,
Expression right)
Creates a new operation, with the given operator and the left and right expression.
|
Copyright © 2016. All rights reserved.