org.apache.xml.serializer
Class NamespaceMappings.Stack

java.lang.Object
  extended by org.apache.xml.serializer.NamespaceMappings.Stack
Enclosing class:
NamespaceMappings

private class NamespaceMappings.Stack
extends java.lang.Object

Rather than using java.util.Stack, this private class provides a minimal subset of methods and is faster because it is not thread-safe.


Field Summary
(package private)  java.lang.Object[] m_stack
           
private  int max
           
private  int top
           
 
Constructor Summary
NamespaceMappings.Stack()
           
 
Method Summary
 void clear()
           
 java.lang.Object clone()
           
 boolean empty()
           
 java.lang.Object getElement(int index)
           
 boolean isEmpty()
           
 java.lang.Object peek()
           
 java.lang.Object peek(int idx)
           
 java.lang.Object pop()
           
 java.lang.Object push(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

top

private int top

max

private int max

m_stack

java.lang.Object[] m_stack
Constructor Detail

NamespaceMappings.Stack

public NamespaceMappings.Stack()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

push

public java.lang.Object push(java.lang.Object o)

pop

public java.lang.Object pop()

peek

public java.lang.Object peek()

peek

public java.lang.Object peek(int idx)

isEmpty

public boolean isEmpty()

empty

public boolean empty()

clear

public void clear()

getElement

public java.lang.Object getElement(int index)