|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pl.edu.pjwstk.yaod.yaql.engine.QueryResultStack
The QueryResultStack
class represents the query result stack,
which is responsible for holding all possible results which can be yielded
during evaluation.
QueryResult
Constructor Summary | |
QueryResultStack()
Creates a new query result stack. |
Method Summary | |
boolean |
empty()
Tests whether or not the stack is empty. |
QueryResult |
getElementAt(int i)
Returns (without removal) the i-th element from the query result stack. |
QueryResult |
getFirstElement()
Returns (without removal) the first element from the query result stack. |
QueryResult |
getLastElement()
Returns (without removal) the last element from the query result stack. |
int |
getSize()
Returns the number of elements in the query result stack. |
QueryResult |
pop()
Returns (and removes) the last element from the query result stack. |
void |
push(QueryResult qr)
Puts new element onto query result stack. |
void |
show()
Shows all the elements of query result stack. |
QueryResult |
top()
Returns (without removal) the last element from the query result stack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryResultStack()
Method Detail |
public boolean empty()
true
if stack is empty, false
otherwise.public void push(QueryResult qr)
QueryResult
public QueryResult pop() throws EmptyStackException
EmptyStackException
- if stack is empty.QueryResult
public QueryResult top() throws EmptyStackException
EmptyStackException
- if stack is empty.QueryResult
public int getSize()
public QueryResult getElementAt(int i)
i
- the index of element to be returned.QueryResult
public QueryResult getFirstElement()
QueryResult
public QueryResult getLastElement()
QueryResult
public void show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |