Package org.verapdf.parser.postscript
Class PSOperator
- java.lang.Object
-
- org.verapdf.cos.COSObject
-
- org.verapdf.parser.postscript.PSObject
-
- org.verapdf.parser.postscript.PSOperator
-
public class PSOperator extends PSObject
Represents executable PostScript operator.- Author:
- Sergey Shemyakov
-
-
Constructor Summary
Constructors Constructor Description PSOperator(COSName operator)
PSOperator(COSObject operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Stack<COSObject> operandStack, Map<ASAtom,COSObject> userDict)
Executes PostScript object.String
getOperator()
-
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, 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
-
-
-
-
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 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.- Throws:
PostScriptException
-
-