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

com.codetaco.math.impl.operator.OpCompareNotLess Maven / Gradle / Ivy

package com.codetaco.math.impl.operator;

import com.codetaco.math.impl.EquImpl;
import com.codetaco.math.impl.EquPart;
import com.codetaco.math.impl.ValueStack;

public class OpCompareNotLess extends OpCompareLess {

    public OpCompareNotLess(EquImpl equ) {
        super(equ);
    }

    public OpCompareNotLess(EquImpl equ, EquPart opTok) {
        super(equ, opTok);
    }

    @Override
    public void resolve(final ValueStack values) throws Exception {
        super.resolve(values);
        values.push(!values.popBoolean());
    }

    @Override
    public String toString() {
        return "op(compare not less)";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy