`
winzenghua
  • 浏览: 1369757 次
  • 性别: Icon_minigender_2
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论

Contracts for Java

阅读更多

Google 宣布 了一个新的开源 Java 工具 Contracts for Java,基于 Johannes Rieken 制作的 Modern Jass,灵感来自 Eiffel 编程语言,由两名 Google 工程师 David Morgan 和 Andreas Leitner 利用自己的 20% 时间制作。

Contracts for Java 可让你对代码进行注释来约束代码的先决条件、后置条件和不变量,示例代码:

interface Time {
  ...

  @Ensures({
    "result >= 0",
    "result = 0",
    "h 

项目地址:http://code.google.com/p/cofoja/



本文是使用 B3log Solo简约设计の艺术 进行同步发布的
分享到:
评论

相关推荐

    Component Development For Java Platform

    综上所述,本书《Component Development For Java Platform》主要讲述Java编程语言在组件开发方面的应用,作者Stuart Dabbs Halloway,是关于Java平台组件开发的专业书籍,主要面向寻求深入了解Java组件开发和系统...

    aws for java

    ### AWS Flow Framework for Java知识点详解 #### 一、概述 **AWS Flow Framework for Java** 是一个专为Java开发者设计的框架,旨在简化基于Amazon Web Services (AWS) 的工作流应用程序的开发过程。此框架提供了...

    java中异常的笔试题-cofoja:Java合约

    for Java,简称 Cofoja,是 Java 的合约编程框架和测试工具,它使用注解处理和字节码检测来提供运行时检查。 (特别是,这不是静态分析工具。) 我最初是在 2010 年在 Google 实习时根据 Modern Jass 的工作编写的 ...

    D3-Explorer:Eclipse 的 D3-Explorer 插件-开源

    D3-Explorer 与 C4J( Contracts for Java)框架紧密集成,C4J 是一个强大的 DbC 框架,它允许开发者在 Java 代码中声明预条件、后条件和类不变量。 契约设计是一种编程范式,强调在编写代码之前先定义对象和方法的...

    The Java EE 6 Tutorial Basic Concepts 4th Edition

    Chapter 17: Introduction to Contexts and Dependency Injection for the Java EE Platform 305 Overview of CDI 306 About Beans 307 About Managed Beans 307 Beans as Injectable Objects 308 Using ...

    Java - A Beginner’s Guide - Sixth Edition - Herbert Schildt

    Understanding these concepts is crucial for manipulating data and performing operations in Java. #### Program Control Statements Control statements are essential for directing the flow of execution ...

    pellet-2.2.2.zip (Sep 16, 2010)

    Pellet: OWL 2 Reasoner for Java Overview For applications that need to represent and reason about information using OWL, Pellet is the leading choice for systems where sound-and-complete OWL DL ...

    毕业论文springboot299基于Java的家政服务平台的设计与实现论文.doc

    In conclusion, the "基于 Java 的家政服务平台设计与实现" is a comprehensive project that integrates Spring Boot, Java, and MySQL to create an efficient and user-friendly platform for managing ...

    javaee API

    javax.faces.webapp Classes required for integration of JavaServer Faces into web applications, including a standard servlet, base classes for JSP custom component tags, and concrete tag ...

    毕业论文java jsp ssm mysql 026高校物资采购管理系统.docx

    The system employs a B/S (Browser/Server) architecture, utilizing Java as the primary development language for its front-end interface and MySQL as the back-end database for data storage and retrieval...

    paddle:Java库为Waves区块链上的dApp和其他智能合约编写测试

    在Windows上,安装最新的“ Docker for Windows”。 安装最简单的入门方法是从paddle-example GitHub模板创建一个新项目。 或将Paddle添加为对现有项目的依赖。 玛文< dependency> < groupId>im.mak</ gro

    WEB Service相关资源

    - JAX-WS(Java API for XML Web Services)是Java平台上的Web服务标准,取代了早期的JAX-RPC(Java API for XML-Based RPC),与Axis 1.x相比,JAX-WS更现代且更符合标准。 - Spring框架的Spring-WS提供了另一种...

    RCF-一个很好的进程间通信库

    These frameworks all share a fundamental flaw, though: they use interfaces as a veneer for what is fundamentally an object-oriented view of distributed systems. RCF imposes no object model at all ...

    Android代码-corda

    Smart contracts that can be written in Java and other JVM languages Flow framework to manage communication and negotiation between participants Peer-to-peer network of nodes "Notary" infrastructure to...

    BlueToolInstall

    1.8. “Source Code” means those portions of the Software, if any, furnished to Licensee in source code or human readable form, including, without limitation, any C, C++, Java, Verilog, HDL or RTL ...

    vut-excel-at-fit-2021:Excel @ FIT 2021-通过Facebook推断并发程序中原子性的高级静态分析

    1. **并发合同**(Contracts for Concurrency):这是一种编程模式,允许程序员明确指定代码的并发性质,例如声明哪些部分是线程安全的。 2. **原子器**(Atomer):可能是一种自定义的数据结构或算法,用于标记和...

Global site tag (gtag.js) - Google Analytics