
org.openpdf.renderer.function.postscript.operation.IfElse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openpdf-renderer Show documentation
Show all versions of openpdf-renderer Show documentation
PDF renderer implementation supporting the subset of PDF 1.4 specification.
The newest version!
package org.openpdf.renderer.function.postscript.operation;
import java.util.Stack;
final class IfElse implements PostScriptOperation {
@Override
/**
* bool {expr1} {expr2} ifelse -
*
* removes all three operands from the stack, then
* executes proc1 if bool is true or proc2 if bool is false.
* The ifelse operator pushes no results of its own on the
* operand stack, but the procedure it executes may do so
* (see Section 3.5, "Execution").
*
* Examples
* 4 3 lt {(TruePart)} {(FalsePart)} ifelse
* results in FalsePart, since 4 is not less than 3
*
* errors: stackunderflow, typecheck
*/
public void eval(Stack
© 2015 - 2025 Weber Informatics LLC | Privacy Policy