FileDocCategorySizeDatePackage
Stack.javaAPI DocJBoss 4.2.11741Fri Jul 13 21:02:22 BST 2007test.dbc.stack

Stack

public interface Stack
author
Kabir Khan
version
$Revision: 57186 $
@org.jboss.aspects.dbc.Dbc
@org.jboss.aspects.dbc.Invariant
({"!$tgt.isEmpty() implies $tgt.top() != null", "$tgt.isEmpty() implies $tgt.elements.size() == 0"})

Fields Summary
Constructors Summary
Methods Summary
public booleanisEmpty()

public java.lang.Objectpop()

@org.jboss.aspects.dbc.PreCond
({"!$tgt.isEmpty()"})

public voidpush(java.lang.Object o)

@org.jboss.aspects.dbc.PreCond
({"$0 != null"})
@org.jboss.aspects.dbc.PostCond
({"!$tgt.isEmpty()", "$tgt.top() == $0"})

public java.lang.Objecttop()

@org.jboss.aspects.dbc.PreCond
({"!$tgt.isEmpty()"})