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

net.sourceforge.pmd.lang.apex.ast.ASTMapEntryNode Maven / Gradle / Ivy

There is a newer version: 7.5.0
Show newest version
/*
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

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

import java.util.Arrays;

import com.google.summit.ast.expression.Expression;

public final class ASTMapEntryNode extends AbstractApexNode.Many {

    private final Expression key;
    private final Expression value;

    ASTMapEntryNode(Expression key, Expression value) {
        super(Arrays.asList(key, value));
        this.key = key;
        this.value = value;
    }


    @Override
    protected  R acceptApexVisitor(ApexVisitor visitor, P data) {
        return visitor.visit(this, data);
    }

    @Override
    public String getImage() {
        return String.format("%s: %s", key, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy