FreeHEP API
Version current

org.freehep.postscript
Class OperandStack

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byjava.util.Stack
                  extended byorg.freehep.postscript.PostScriptStack
                      extended byorg.freehep.postscript.OperandStack
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class OperandStack
extends PostScriptStack

OperandStack for PostScript Processor

Version:
$Id: OperandStack.java,v 1.8 2004/01/12 20:19:14 duns Exp $
Author:
Mark Donszelmann
See Also:
Serialized Form
Source Code:
OperandStack.java

Field Summary
 
Fields inherited from class org.freehep.postscript.PostScriptStack
marker
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OperandStack(Processor p, PSGState gs, boolean secure)
           
 
Method Summary
 boolean checkType(Class type)
           
 boolean checkType(Class[] types)
           
 boolean checkType(Class type1, Class type2)
           
 boolean checkType(Class type1, Class type2, Class type3)
           
 boolean checkType(Class type1, Class type2, Class type3, Class type4)
           
 boolean checkType(Class type1, Class type2, Class type3, Class type4, Class type5)
           
 boolean clearToMark()
           
 void copy(int n)
           
 DictionaryStack dictStack()
           
 void dup()
           
 void exch()
           
 ExecutableStack execStack()
           
 DSC getDSC()
           
 void grestore()
           
 void gsave()
           
 PSGState gstate()
           
 GStateStack gstateStack()
           
 void index(int n)
           
 boolean isSecure()
           
 boolean packingMode()
           
 PSArray popArray()
           
 PSBoolean popBoolean()
           
 PSComposite popComposite()
           
 PSDataSource popDataSource()
           
 PSDataTarget popDataTarget()
           
 PSDictionary popDictionary()
           
 PSFile popFile()
           
 PSFontID popFontID()
           
 PSGState popGState()
           
 PSInteger popInteger()
           
 PSName popName()
           
 PSNumber popNumber()
           
 PSPackedArray popPackedArray()
           
 PSReal popReal()
           
 PSSave popSave()
           
 PSString popString()
           
 void printStack()
           
 void push(boolean b)
           
 void push(double d)
           
 void push(int i)
           
 void push(PSObject o)
           
 void roll(int n, int j)
           
 void setPackingMode(boolean state)
           
 String toString()
           
 
Methods inherited from class org.freehep.postscript.PostScriptStack
copyInto, countToMark, mark, peekObject, peekObject, pop, popMark, popObject, push, push, reset
 
Methods inherited from class java.util.Stack
empty, peek, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

OperandStack

public OperandStack(Processor p,
                    PSGState gs,
                    boolean secure)
Method Detail

gstate

public PSGState gstate()

gsave

public void gsave()

grestore

public void grestore()

isSecure

public boolean isSecure()

setPackingMode

public void setPackingMode(boolean state)

packingMode

public boolean packingMode()

dictStack

public DictionaryStack dictStack()

execStack

public ExecutableStack execStack()

gstateStack

public GStateStack gstateStack()

getDSC

public DSC getDSC()

push

public void push(PSObject o)

push

public void push(int i)

push

public void push(double d)

push

public void push(boolean b)

popComposite

public PSComposite popComposite()

popNumber

public PSNumber popNumber()

popInteger

public PSInteger popInteger()

popReal

public PSReal popReal()

popBoolean

public PSBoolean popBoolean()

popName

public PSName popName()

popFontID

public PSFontID popFontID()

popGState

public PSGState popGState()

popArray

public PSArray popArray()

popPackedArray

public PSPackedArray popPackedArray()

popString

public PSString popString()

popDictionary

public PSDictionary popDictionary()

popFile

public PSFile popFile()

popSave

public PSSave popSave()

popDataSource

public PSDataSource popDataSource()

popDataTarget

public PSDataTarget popDataTarget()

exch

public void exch()

dup

public void dup()

copy

public void copy(int n)

index

public void index(int n)

roll

public void roll(int n,
                 int j)

clearToMark

public boolean clearToMark()

checkType

public boolean checkType(Class type)

checkType

public boolean checkType(Class type1,
                         Class type2)

checkType

public boolean checkType(Class type1,
                         Class type2,
                         Class type3)

checkType

public boolean checkType(Class type1,
                         Class type2,
                         Class type3,
                         Class type4)

checkType

public boolean checkType(Class type1,
                         Class type2,
                         Class type3,
                         Class type4,
                         Class type5)

checkType

public boolean checkType(Class[] types)

printStack

public void printStack()
Overrides:
printStack in class PostScriptStack

toString

public String toString()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.