Top Description Fields Constructors Methods
org.apache.xerces.util

public final Class IntStack

extends Object
Class Inheritance

A simple integer based stack. moved to org.apache.xerces.util by neilg to support the XPathMatcher.
Author
Andy Clark, IBM
Version
$Id: IntStack.java 447241 2006-09-18 05:12:57Z mrglavas $

Field Summary

Modifier and TypeField and Description
private int[]
fData

Stack data.

private int
fDepth

Stack depth.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Clears the stack.

public int
elementAt(int depth)

Returns the element at the specified depth in the stack.

private void
ensureCapacity(int size)

Ensures capacity.

public int
peek()

Peeks at the top of the stack.

public int
pop()

Pops a value off of the stack.

public void
push(int value)

Pushes a value onto the stack.

public int
size()

Returns the size of the stack.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fDataback to summary
private int[] fData

Stack data.

fDepthback to summary
private int fDepth

Stack depth.

Constructor Detail

IntStackback to summary
public IntStack()

Method Detail

clearback to summary
public void clear()

Clears the stack.

elementAtback to summary
public int elementAt(int depth)

Returns the element at the specified depth in the stack.

ensureCapacityback to summary
private void ensureCapacity(int size)

Ensures capacity.

peekback to summary
public int peek()

Peeks at the top of the stack.

popback to summary
public int pop()

Pops a value off of the stack.

pushback to summary
public void push(int value)

Pushes a value onto the stack.

sizeback to summary
public int size()

Returns the size of the stack.