fr.paris5.shaman.spirit.logicsheet
Class TreeProcessingStack

java.lang.Object
  |
  +--fr.paris5.shaman.spirit.logicsheet.TreeProcessingStack

public final class TreeProcessingStack
extends java.lang.Object

Stack for de-recursifying a tree processing.

Version:
$Id: TreeProcessingStack.java,v 1.1 2002/06/25 08:33:10 caillette Exp $
Author:
Laurent Caillette

Inner Class Summary
private static class TreeProcessingStack.StackElement
           
 
Field Summary
static int HAS_CHILDREN
           
static int NO_FLAGS
           
private  java.util.Stack stack
           
 
Constructor Summary
TreeProcessingStack()
           
 
Method Summary
 int getFlagsForTop()
           
 java.lang.Object getTop()
           
static boolean hasChildrenFlag(int flags)
           
 boolean isEmpty()
           
 boolean isTopProcessed()
           
 void pop()
           
 void push(java.lang.Object item)
           
 void push(java.lang.Object item, int flags)
           
 void setTopProcessed()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

stack

private final java.util.Stack stack

NO_FLAGS

public static final int NO_FLAGS

HAS_CHILDREN

public static final int HAS_CHILDREN
Constructor Detail

TreeProcessingStack

public TreeProcessingStack()
Method Detail

isEmpty

public boolean isEmpty()

getTop

public java.lang.Object getTop()

isTopProcessed

public boolean isTopProcessed()

setTopProcessed

public void setTopProcessed()

getFlagsForTop

public int getFlagsForTop()

pop

public void pop()

push

public void push(java.lang.Object item)

push

public void push(java.lang.Object item,
                 int flags)

hasChildrenFlag

public static final boolean hasChildrenFlag(int flags)


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.