org.qbicc.graph.Max Maven / Gradle / Ivy
package org.qbicc.graph;
import org.qbicc.type.definition.element.ExecutableElement;
/**
*
*/
public final class Max extends AbstractBinaryValue implements CommutativeBinaryValue {
Max(final Node callSite, final ExecutableElement element, final int line, final int bci, final Value v1, final Value v2) {
super(callSite, element, line, bci, v1, v2);
}
public R accept(final ValueVisitor visitor, final T param) {
return visitor.visit(param, this);
}
@Override
public boolean isDefGe(Value other) {
return other.equals(getLeftInput()) || other.equals(getRightInput()) || super.isDefGe(other);
}
@Override
String getNodeName() {
return "Max";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy