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

net.sourceforge.pmd.lang.java.ast.AbstractInvocationExpr Maven / Gradle / Ivy

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

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

import net.sourceforge.pmd.lang.java.types.OverloadSelectionResult;

/**
 *
 */
abstract class AbstractInvocationExpr extends AbstractJavaExpr implements InvocationNode {

    private OverloadSelectionResult result;

    AbstractInvocationExpr(int i) {
        super(i);
    }

    void setOverload(OverloadSelectionResult result) {
        assert result != null;
        this.result = result;
    }

    @Override
    public OverloadSelectionResult getOverloadSelectionInfo() {
        forceTypeResolution();
        return assertNonNullAfterTypeRes(result);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy