use of org.apache.sling.scripting.sightly.compiler.expression.nodes.UnaryOperator in project sling by apache.
the class ExpressionTranslator method visit.
@Override
public void visit(UnaryOperation unaryOperation) {
UnaryOperator operator = unaryOperation.getOperator();
ExpressionNode operand = unaryOperation.getTarget();
UnaryOpGen unaryOpGen = Operators.generatorFor(operator);
source.startExpression();
unaryOpGen.generate(source, this, typeInfo.getTyped(operand));
source.endExpression();
}
Aggregations