Package org.verapdf.parser.postscript
Class PSObject
java.lang.Object
org.verapdf.cos.COSObject
org.verapdf.parser.postscript.PSObject
- Direct Known Subclasses:
PSLiteralObject
,PSOperator
,PSProcedure
This is the base class for PostScript object.
- Author:
- Sergey Shemyakov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Executes PostScript object.static PSObject
getPSObject
(COSObject obj) Constructs PostScript object from COS object.static PSObject
getPSObject
(COSObject obj, boolean isExecutable) 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
-
PSObject
-
-
Method Details
-
execute
public abstract void execute(Stack<COSObject> operandStack, Map<ASAtom, COSObject> userDict) throws PostScriptExceptionExecutes 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.- 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
-
getPSObject
Constructs PostScript object from COS object. -
getPSObject
-