/*
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

package net.sourceforge.pmd.lang.apex.ast;

import apex.jorje.data.ast.PostfixOp;
import apex.jorje.semantic.ast.expression.PostfixExpression;


public final class ASTPostfixExpression extends AbstractApexNode<PostfixExpression> {

    ASTPostfixExpression(PostfixExpression postfixExpression) {
        super(postfixExpression);
    }



    @Override
    protected <P, R> R acceptApexVisitor(ApexVisitor<? super P, ? extends R> visitor, P data) {
        return visitor.visit(this, data);
    }

    /**
     * @deprecated Use {@link #getOp()} instead.
     */
    @Deprecated
    public PostfixOp getOperator() {
        return node.getOp();
    }

    public PostfixOperator getOp() {
        return PostfixOperator.valueOf(node.getOp());
    }
}
