Skip to content
klappdevPublic

About

Java contract library based on AspectJ

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Snitch

This is simple Java contract library based on AspectJ.

Library can make compare operations with primitive type and check objects for null.
There are three type annotation which use for checking.

@Expects   - check parameters method
@Ensures   - check return value method
@Invariant - check fields class

Developer can check input parameters method.

alt text

Developer can check return value method. For return variable use reserved word result.

alt text

Developer also can check value fields class.

alt text

Support syntax highlight for string contract annotations in IntelliJ Idea
through language injection.

In future expects add check call method objects and Eclipse IDE highlight syntax plugins.

Requirements:
JDK: Java 8
libs: AspectJ

About

Java contract library based on AspectJ

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages