iiitAccessServer 1.0

de.iiit.access.server.plugins.parser
Class ParserStack

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--java.util.Stack
                          |
                          +--de.iiit.access.server.plugins.parser.ParserStack
All Implemented Interfaces:
Cloneable, Collection, List, ParserStackIf, RandomAccess, Serializable

public class ParserStack
extends Stack
implements ParserStackIf

This stack is used to pass the expressions and its subexpression between the parser and the resolver. Each time the result of the current expression is also an expression it is pushed onto the stack and the parser is called recursively. When the result of the current expression is a set the expression is pulled from the stack. Everytime a new element is pushed onto it, the stack reviews its content. When the same expression is already there it throws a ParserException to show that it recognized circular references inside the expression.

Version:
$Revision: 1.5 $ $Date: 2003/04/13 21:09:56 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ParserStack()
          Creates a new instance of ParserStack
 
Method Summary
 Object pushArgument(Object item)
          Pushes a new item onto the stack.
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, 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, toString, 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 de.iiit.access.server.api.ParserStackIf
peek, pop, push
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

ParserStack

public ParserStack()
Creates a new instance of ParserStack

Method Detail

pushArgument

public Object pushArgument(Object item)
                    throws ParserException
Pushes a new item onto the stack. This method search the stack for the new item. If it is already there a ParserExeption is thrown to show that a circular references inside the expression was recognized.

Specified by:
pushArgument in interface ParserStackIf
Parameters:
item - The new item
Returns:
the new item.
Throws:
ParserException - if the new item is already on the stack

iiitAccessServer 1.0

Copyright © 2002, 2003 ingeneurbuero fuer innovative informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund, Germany. All Rights Reserved.
See Copyright statement