org.foray.ps
Class PsDictionaryStack
java.lang.Object
org.foray.ps.PsStack<PsDictionary>
org.foray.ps.PsDictionaryStack
public class PsDictionaryStack
- extends PsStack<PsDictionary>
A PostScript Dictionary stack.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMinimumStackSize
public int getMinimumStackSize()
- Description copied from class:
PsStack
- Returns the minumum size that this stack can be. Attempts to pop an item off the stack that
would violate this constraint will result in an underflow error.
- Specified by:
getMinimumStackSize
in class PsStack<PsDictionary>
- Returns:
- The minimum size that this stack can be.
getUnderflowError
public PsError getUnderflowError()
- Description copied from class:
PsStack
- Returns the appropriate PS error that should be used for an underflow condition in this
stack.
- Specified by:
getUnderflowError
in class PsStack<PsDictionary>
- Returns:
- The PS underflow error for this stack.
filterPush
protected PsDictionary filterPush(PsDictionary objectToPush)
- Description copied from class:
PsStack
- A hook for subclasses to filter the content of items being pushed onto the stack.
- Specified by:
filterPush
in class PsStack<PsDictionary>
- Parameters:
objectToPush
- The nominal object being pushed onto the stack.
- Returns:
- The object that should actually be pushed onto the stack. This can be the same as
objectToPush
, but is not required to be so.
Copyright © 2017. All rights reserved.