|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList java.util.Vector java.util.Stack
JML's specification of Stack.
Class Specifications |
Specifications inherited from class Vector |
public invariant this.maxCapacity >= 0&&this.capIncrement >= 0&&this.theList.int_size() <= this.maxCapacity; public invariant 0 <= this.elementCount; public invariant this.elementCount == this.size(); public constraint this.capIncrement == \old(this.capIncrement); protected represents theList <- org.jmlspecs.models.JMLEqualsSequence.convertFrom(this.elementData,this.elementCount); public represents maxCapacity <- this.capacity(); protected represents capIncrement <- this.capacityIncrement; |
Specifications inherited from class AbstractList |
protected initially this.modCount == 0; |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Specifications inherited from interface List |
instance public represents theCollection <- this.theList.toBag(); |
Specifications inherited from interface Collection |
instance public invariant this.elementType == this.theCollection.elementType; instance public invariant this.containsNull == this.theCollection.containsNull; instance public invariant !this.nullElementsSupported ==> !this.containsNull; |
Model Field Summary |
Model fields inherited from class java.util.Vector |
capIncrement, maxCapacity |
Model fields inherited from class java.lang.Object |
_getClass, objectState, theString |
Model fields inherited from interface java.util.List |
theList |
Model fields inherited from interface java.util.Collection |
addOperationSupported, elementState, nullElementsSupported, removeOperationSupported, theCollection |
Ghost Field Summary |
Ghost fields inherited from class java.lang.Object |
objectTimesFinalized, owner |
Ghost fields inherited from interface java.util.Collection |
containsNull, elementType |
Field Summary |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
Stack()
|
Model Method Summary |
Model methods inherited from class java.lang.Object |
hashValue |
Model methods inherited from interface java.util.Collection |
hashValue |
Method Summary | |
boolean |
empty()
|
Object |
peek()
|
Object |
pop()
|
Object |
push(Object item)
|
int |
search(Object o)
|
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 java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public Stack()
Method Detail |
public Object push(Object item)
public Object pop()
public Object peek()
public boolean empty()
public int search(Object o)
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |