The Java to VDM++ User Manual

The Java to VDM++ User Manual - CSKSYSTEMSCORPORATION...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSKSYSTEMSCORPORATION VDMTools The Java to VDM++ User Manual ver.1.0 How to contact CSK SYSTEMS CORPORATION: http://www.csk.com/systems Web @ VDM.SP@csk.com General information The Java to VDM++ User Manual 1.0 Revised for VDMTools v8.2 c COPYRIGHT 2009 by CSK SYSTEMS CORPORATION The software described in this document is furnished under a license agreement. The software may be used or copied only under the terms of the license agreement. This document is subject to change without notice The Java to VDM++ User Manual Contents 1 Introduction 1 2 Including Java Classes in a Project 1 3 Options to the Translation 8 4 Limitations 9 4.1 Scope Differences between Java and VDM++ . . . . . . . . . . . 9 4.1.1 Class Names . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.1.2 Name Conicts . . . . . . . . . . . . . . . . . . . . . . . . 10 4.1.3 The scope of a class member . . . . . . . . . . . . . . . . . 11 4.1.4 Access to instance variables of a subclass . . . . . . . . . . 12 4.2 Restrictions on Statements with Side Effects . . . . . . . . . . . . 14 4.2.1 Initialization of class or instance variables . . . . . . . . . 14 4.2.2 Conditional Expressions on the Left-hand side of Assignments 14 4.2.3 JavaLangObject Member Access . . . . . . . . . . . . . . . 15 4.3 Language Construct Differences . . . . . . . . . . . . . . . . . . . 15 4.3.1 Java vs. VDM++ Keywords . . . . . . . . . . . . . . . . . 15 4.3.2 Assignment to Function Parameters . . . . . . . . . . . . . 15 4.3.3 Using Assignment to new Instances as an Expression . . . 16 4.3.4 Numeric Types . . . . . . . . . . . . . . . . . . . . . . . . 16 4.3.5 Type Conversions . . . . . . . . . . . . . . . . . . . . . . . 17 4.3.6 Inner Classes . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.3.7 Implicit use of Qualified this . . . . . . . . . . . . . . . . 18 4.3.8 Anonymous Classes . . . . . . . . . . . . . . . . . . . . . . 18 4.3.9 label , break and continue . . . . . . . . . . . . . . . . . 19 4.3.10 switch without Alternative Breaks . . . . . . . . . . . . . 19 4.4 Unsupported Concepts . . . . . . . . . . . . . . . . . . . . . . . . 20 4.4.1 Concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.4.2 Unicode Characters . . . . . . . . . . . . . . . . . . . . . . 20 5 Details of the Java to VDM++ Translation 21 5.1 Built-in Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.2 Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3 Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.4 Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.5 Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.5.1 Methods and Members . . . . . . . . . . . . . . . . . . . . 23 5.5.2 Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.5.3 Modifiers of a Class . . . . . . . . . . . . . . . . . . . . . . 24 i The Java to VDM++ User Manual 5.5.4 Access modifiers...
View Full Document

This note was uploaded on 03/31/2010 for the course CAS 707 taught by Professor Ridhakhedri during the Spring '10 term at McMaster University.

Page1 / 110

The Java to VDM++ User Manual - CSKSYSTEMSCORPORATION...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online