
com.mitchellbosecke.pebble.node.expression.binary.NodeExpressionBinaryAdd Maven / Gradle / Ivy
/*******************************************************************************
* This file is part of Pebble.
*
* Original work Copyright (c) 2009-2013 by the Twig Team
* Modified work Copyright (c) 2013 by Mitchell Bösecke
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
package com.mitchellbosecke.pebble.node.expression.binary;
import com.mitchellbosecke.pebble.compiler.Compiler;
import com.mitchellbosecke.pebble.node.expression.NodeExpressionBinary;
import com.mitchellbosecke.pebble.utils.OperatorUtils;
public class NodeExpressionBinaryAdd extends NodeExpressionBinary {
@Override
public void compile(Compiler compiler) {
compiler.raw(OperatorUtils.class.getName()).raw(".add(").subcompile(leftExpression, false).raw(",")
.subcompile(rightExpression, false).raw(")");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy