Class PSOperator


  • public class PSOperator
    extends PSObject
    Represents executable PostScript operator.
    Author:
    Sergey Shemyakov
    • Constructor Detail

      • PSOperator

        public PSOperator​(COSName operator)
      • PSOperator

        public PSOperator​(COSObject operator)
    • Method Detail

      • getOperator

        public String getOperator()
      • execute

        public void execute​(Stack<COSObject> operandStack,
                            Map<ASAtom,​COSObject> userDict)
                     throws PostScriptException
        Description copied from class: PSObject
        Executes PostScript object. For literal objects this execution means pushing object to operand stack, for operator and procedure objects execution mean execution of this operator or procedure.
        Specified by:
        execute in class PSObject
        Parameters:
        operandStack - is stack for PostScript operands (see PostScript specification for further information).
        userDict - is a dictionary that stores all key-value associated pair encountered during PostScript parsing. Full PostScript parser needs a dict stack, our implementation has only one dictionary.
        Throws:
        PostScriptException