JOURNAL ARTICLE

Iterator specification with typestates

Abstract

Java iterators are notoriously hard to specify. This paper applies a general typestate specification technique that supports several forms of aliasing to the iterator problem. The presented specification conservatively captures iterator protocols and consistency rules. Two limitations of the specification are discussed.

Keywords:
Computer science Programming language Java Consistency (knowledge bases) Aliasing Artificial intelligence

Metrics

16
Cited By
3.14
FWCI (Field Weighted Citation Impact)
8
Refs
0.92
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Logic, programming, and type systems
Physical Sciences →  Computer Science →  Artificial Intelligence
Formal Methods in Verification
Physical Sciences →  Computer Science →  Computational Theory and Mathematics
Advanced Software Engineering Methodologies
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

JOURNAL ARTICLE

Lightweight object specification with typestates

Kevin BierhoffJonathan Aldrich

Journal:   ACM SIGSOFT Software Engineering Notes Year: 2005 Vol: 30 (5)Pages: 217-226
JOURNAL ARTICLE

The property vector specification of a multiset iterator

T.W. PearceDavid Alex Lamb

Journal:   International Conference on Software Engineering Year: 1992 Pages: 235-245
© 2026 ScienceGate Book Chapters — All rights reserved.