Package org.verapdf.parser.postscript
Class PSProcedure
java.lang.Object
org.verapdf.cos.COSObject
org.verapdf.parser.postscript.PSObject
org.verapdf.parser.postscript.PSProcedure
Class represents PostScript procedure. Notice that when it is read from
PostScript program it is pushed to operand stack for later invocation.
- Author:
- Sergey Shemyakov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Executes PostScript object.void
Methods inherited from class org.verapdf.parser.postscript.PSObject
getPSObject, getPSObject
Methods inherited from class org.verapdf.cos.COSObject
accept, add, assign, at, clear, clearArray, empty, equals, get, getBoolean, getBooleanKey, getData, getData, getDirect, getDirectBase, getDocument, getEmpty, getInteger, getIntegerKey, getKey, getKey, getKeySet, getName, getNameKey, getNameKeyStringValue, getObjectKey, getReal, getRealKey, getRealStreamSize, getString, getStringKey, getType, getValues, insert, isEndOfObjectComplyPDFA, isEndstreamKeywordCRLFCompliant, isHeaderFormatComplyPDFA, isHeaderOfObjectComplyPDFA, isIndirect, isStreamKeywordCRLFCompliant, knownKey, mark, remove, removeKey, set, set, setArray, setArray, setArray, setArrayKey, setArrayKey, setArrayKey, setArrayKey, setBoolean, setBooleanKey, setData, setData, setDirect, setEndstreamKeywordCRLFCompliant, setInteger, setIntegerKey, setIsEndOfObjectComplyPDFA, setIsHeaderFormatComplyPDFA, setIsHeaderOfObjectComplyPDFA, setKey, setKey, setName, setNameKey, setObjectKey, setReal, setRealKey, setRealStreamSize, setStreamKeywordCRLFCompliant, setString, setString, setStringKey, size, toString
-
Constructor Details
-
PSProcedure
-
-
Method Details
-
executeProcedure
public void executeProcedure(Stack<COSObject> operandStack, Map<ASAtom, COSObject> userDict) throws PostScriptException- Throws:
PostScriptException
-
execute
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 classPSObject
- 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.
-
modifiedExecuteProcedure
public Stack<COSObject> modifiedExecuteProcedure(Stack<COSObject> operandStack, Map<ASAtom, COSObject> userDict) throws PostScriptException- Throws:
PostScriptException
-