com.io7m.jpra 0.6.0 Documentation
Package Information
Orientation
Overview
The com.io7m.jpra provides
a simple language and set of tools for producing and accessing
packed records.
Installation
Source compilation
The project can be compiled and installed with
Maven:
Maven
Regular releases are made to the
Central Repository,
so it's possible to use the
com.io7m.jpra
package in your projects with the following Maven dependency:
<dependency>
<groupId>com.io7m.jpra</groupId>
<artifactId>com.io7m.jpra-core</artifactId>
<version>0.6.0</version>
</dependency>
All
io7m.com
packages use Semantic Versioning
, which implies that it is always safe to use version ranges
with an exclusive upper bound equal to the next major version - the API of
the package will not change in a backwards-incompatible manner before the
next major version.
Platform Specific Issues
There are currently no known platform-specific issues.
License
All files distributed with the
com.io7m.jpra
package are placed under the following license:
Copyright © 2015 <code@io7m.com> http://io7m.com
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Tools Reference
jpra
Overview
The jpra command checks source code
for errors and exports class definitions in the Java language.
Checking
To check source code for errors, without generating Java sources,
use the check subcommand:
The above command will check package com.io7m.example
in the directory p. The package is assumed
to be in the file p/com/io7m/example.jpr.
If checking succeeds, the command says nothing. Otherwise,
errors are printed to standard error and the program exits with a
non-zero exit code.
Code Generation
To generate Java sources,
use the generate-java subcommand:
The above command will check package com.io7m.example
in the directory p. The package is assumed
to be in the file p/com/io7m/example.jpr.
If no errors were detected, it will then generate Java source code
in the directory t, generating one Java
class per type definition, and placing each class in
t/com/io7m/example/.
If checking succeeds, the command says nothing. Otherwise,
errors are printed to standard error and the program exits with a
non-zero exit code.
API Reference
Javadoc
API documentation for the package is provided via the
included
Javadoc.