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

org.openpdf.renderer.function.postscript.operation.Not Maven / Gradle / Ivy

The newest version!
package org.openpdf.renderer.function.postscript.operation;

import java.util.Stack;


final class Not implements PostScriptOperation {
	@Override
	/**
	 * bool1|int1 not bool2|int2 

* * returns the logical negation of the operand if it is * boolean. If the operand is an integer, not returns the * bitwise complement (ones complement) of its binary * representation.

* * errors: stackunderflow, typecheck */ public void eval(Stack environment) { environment.push(~(Long)environment.pop()); } }