net.sourceforge.pmd.lang.java.ast.AbstractInvocationExpr Maven / Gradle / Ivy
/*
* 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);
}
}