All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mitchellbosecke.pebble.operator.UnaryOperatorImpl Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
/*******************************************************************************
 * This file is part of Pebble.
 * 
 * Copyright (c) 2014 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.operator;

import com.mitchellbosecke.pebble.node.expression.UnaryExpression;

public class UnaryOperatorImpl implements UnaryOperator {

    private final int precedence;

    private final String symbol;

    private final Class nodeClass;

    public UnaryOperatorImpl(String symbol, int precedence, Class nodeClass) {
        this.symbol = symbol;
        this.precedence = precedence;
        this.nodeClass = nodeClass;
    }

    @Override
    public int getPrecedence() {
        return precedence;
    }

    @Override
    public String getSymbol() {
        return symbol;
    }

    @Override
    public Class getNodeClass() {
        return nodeClass;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy