de.dante.extex.format.dvi
Class DviStack

java.lang.Object
  extended byde.dante.extex.format.dvi.DviStack

public class DviStack
extends java.lang.Object

DVI stack.

Version:
$Revision: 1.3 $
Author:
Michael Niedermair

Constructor Summary
DviStack()
          Create a new object
 
Method Summary
 void clear()
          Clear the stack.
 boolean empty()
          Tests if this stack is empty.
 DviValues pop()
          Removes the DVIValues at the top of this stack and returns that object as the value of this function.
 DviValues push(DviValues item)
          Pushes an item onto the top of this stack.
 int size()
          Returns the size (depth) of the stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DviStack

public DviStack()
Create a new object

Method Detail

empty

public boolean empty()
Tests if this stack is empty.

Returns:
Returns true, if this stack is empty.

pop

public DviValues pop()
Removes the DVIValues at the top of this stack and returns that object as the value of this function.

Returns:
Returns the DVIValues at the top of this stack.

push

public DviValues push(DviValues item)
Pushes an item onto the top of this stack.

Parameters:
item - the item to be pushed onto this stack.
Returns:
Returns the item argument.

clear

public void clear()
Clear the stack.


size

public int size()
Returns the size (depth) of the stack.

Returns:
Returns the size (depth) of the stack.