public class MediaFilter extends Object implements Expression
| Constructor and Description |
|---|
MediaFilter(String name)
Creates a new media filter for the given attribute (without ":").
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
eval(Scope scope,
Generator gen)
If possible the expression is evaluated and a simplified expression is returned.
|
Expression |
getExpression()
Returns the filter expression.
|
String |
getName()
Returns the name of the attribute being filtered on
|
boolean |
isConstant()
Determines if this expression is constant or if it depends on variables.
|
void |
setExpression(Expression expression)
Sets the filter expression
|
String |
toString() |
public MediaFilter(String name)
name - the name of the attribute to filter onpublic void setExpression(Expression expression)
expression - the filter expression to setpublic Expression getExpression()
public String getName()
public boolean isConstant()
ExpressionisConstant in interface Expressionpublic Expression eval(Scope scope, Generator gen)
Expressioneval in interface Expressionscope - the scope used to resolve variables.gen - the generator used to evaluate functionsCopyright © 2016. All rights reserved.