Class PSLiteralObject


  • public class PSLiteralObject
    extends PSObject
    Class for literal PostScript objects. These objects are just pushed to operand stack while executed.
    Author:
    Sergey Shemyakov
    • Constructor Detail

      • PSLiteralObject

        public PSLiteralObject​(COSObject object)
    • Method Detail

      • 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