com.obdobion.algebrain.operator.OpCompareNotGreater Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algebrain Show documentation
Show all versions of algebrain Show documentation
Equation processing for Java
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)";
}
}