iiitAccessServer 1.0

de.iiit.access.server.api
Interface ParserStackIf

All Known Implementing Classes:
ParserStack

public interface 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.2 $ $Date: 2003/04/13 21:09:56 $

Method Summary
 Object peek()
          Looks at the object at the top of this stack without removing it from the stack.
 Object pop()
          Removes the object at the top of this stack and returns that object as the value of this function.
 Object push(Object item)
          Pushes an item onto the top of this stack.
 Object pushArgument(Object item)
          Pushes a new item onto the stack.
 

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.

Parameters:
item - The new item
Returns:
the new item.
Throws:
ParserException - if the new item is already on the stack

peek

public Object peek()
Looks at the object at the top of this stack without removing it from the stack.

Returns:
the object at the top of this stack (the last item of the Vector object).
Throws:
EmptyStackException - if this stack is empty.

pop

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

Returns:
the object at the top of this stack (the last item of the Vector object).
Throws:
EmptyStackException - if this stack is empty.

push

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

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

iiitAccessServer 1.0

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