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

com.obdobion.algebrain.operator.OpCompareNotGreater Maven / Gradle / Ivy

The newest version!
package com.obdobion.algebrain.operator;

import com.obdobion.algebrain.EquPart;
import com.obdobion.algebrain.ValueStack;

/**
 * 

* OpCompareNotGreater class. *

* * @author Chris DeGreef [email protected] * @since 1.3.9 */ public class OpCompareNotGreater extends OpCompareGreater { /** *

* Constructor for OpCompareNotGreater. *

*/ public OpCompareNotGreater() {} /** *

* Constructor for OpCompareNotGreater. *

* * @param opTok a {@link com.obdobion.algebrain.EquPart} object. */ public OpCompareNotGreater(final EquPart opTok) { super(opTok); } /** {@inheritDoc} */ @Override public void resolve(final ValueStack values) throws Exception { super.resolve(values); values.push(new Boolean(!values.popBoolean())); } /** {@inheritDoc} */ @Override public String toString() { return "op(compare not greater)"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy