|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjml2b.util.Profiler
jml2b.link.VarStack
This class implements a stack containing sets of fields. It is used in the context during the link.
| Constructor Summary | |
VarStack()
Creates a new empty stack. |
|
| Method Summary | |
void |
add(Field f)
Add a field to the set on the top of the stack. |
void |
add(java.util.Vector v)
Add a new set of fields to the top of the stack. |
java.util.Enumeration |
elements()
Returns the elements of the stack. |
boolean |
empty()
Returns whether the stack is empty or not. |
Field |
getField(java.lang.String name)
Return the field with the given name. |
void |
popVars()
Remove the elem�ent at the top of the stack. |
void |
pushVars()
Create a new empty set of fields at the top of the stack. |
java.util.Vector |
top()
Returns the top of the stack. |
| Methods inherited from class jml2b.util.Profiler |
runGC |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VarStack()
| Method Detail |
public void add(java.util.Vector v)
v - The set of field to add to the current blockpublic void add(Field f)
f - The field to add.public void pushVars()
public void popVars()
public boolean empty()
public Field getField(java.lang.String name)
null if the field is
not found
name - The name of the field
public java.util.Vector top()
public java.util.Enumeration elements()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||