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

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

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

import java.util.Stack;


final class Or implements PostScriptOperation {
	@Override
	/**
	 * bool1|int1 bool2|int2 or bool3|int3 

* * returns the logical disjunction of the operands if they * are boolean. If the operands are integers, or returns * the bitwise "inclusive or" of their binary representations.

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