Java Glossary : design by contract

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : D words : design by contract.

design by contract
A programming technique most commonly used in Eiffel to pepper your code with assertions. These define a contract on each method -- the preconditions the caller must guarantee, and the postconditions the callee guarantees. Another form of assertion is called the invariant, something that must be true each time through a loop. Eiffel lets you talk about both the old and new values of variables in your assertions. In Eiffel, these conditions are a formal part of the language and may optionally be checked at run time. In Java there are various ways of kludging them including: iContract, jmsAssert, jContractor, Handshake, Jass and JPP.
Dr. Dobbs article on adding design by contract to Java ¤ Eiffel


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 996.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/designbycontract.html J:\mindprod\jgloss\designbycontract.html