[
Top
]
[
Contents
]
[
Index
]
[
?
]
Table of Contents
About This Guide
What This Guide Contains
What You Should Know before Reading This Guide
1. Getting Started with GNAT-AJIS
1.1 Introduction
1.2 GNAT-AJIS Installation Structure
1.3 GNAT-AJIS / GNAT Compatibility
1.4 A Simple Example: Calling Ada from Java
1.4.1 Environment Setup
1.4.2 An Ada Package
1.4.3 Invoking
ada2java
1.4.4 Compiling the Java class
1.4.5 Building the Application
1.4.6 Running the Program
2. Using
ada2java
to Generate Java Classes
2.1 Using the Tool
2.2 Compiling and Running the Generated Code
2.2.1 Issues with the Ada Generated Code
2.2.2 Compiling as an Ada Shared Library
2.2.3 Compiling as an Ada Main Subprogram
2.2.4 Compiling the Java Generated Classes
2.3 Pragma Annotate and
ada2java
3. Mapping Ada to Java
3.1 Types
3.1.1 Scalar Types
3.1.2 Arrays
3.1.3 Strings
3.1.4 Simple Record Types
3.1.5 Tagged Types
3.1.5.1 General principles
3.1.5.2 Ada type hierarchies
3.1.5.3 Java class hierarchies
3.2 Global Variables and Constants
3.3 Subprograms
3.3.1 Method placement
3.3.2 Subprogram parameters
3.4 Exceptions
3.5 Renamings
3.6 Predefined Environment
3.7 Current Limitations
4. Advanced ada2java Topics
4.1 Dealing with Name Clashes
4.2 Memory Model
4.2.1 Requirements for Non-null Parameter Values
4.2.2 Allocating Ada Objects from Java
4.2.3 Automatic Creation of Native Objects
4.2.4 Native Ownership
4.2.5 Object Allocators
4.2.6 Restrictions on Proxy-Owned Objects Passed to Subprograms
4.3 Thread Safety
4.4 Proxies and Native Object Equality
4.5 Clone and Copy Semantics
4.6 Cross-Language Inheritance
4.6.1 Inheriting from a Java Proxy
4.6.2 Cross Language Dispatching from Ada
4.6.3 The Shadow Native Object
4.6.3.1 Basic Properties
4.6.3.2 Memory Management
4.6.3.3 Shadow Object Equality
4.6.3.4 Shadow Object Cloning
4.6.4 Controlled Types
4.7 Managing Attachment to Java Proxies
4.8 Exceptions propagation
5. Using
javastub
to Generate Ada Package Specifications
6. Using
jvm2ada
to Interface Ada with Java
A. Using JNI Directly
Index
This document was generated by
Mail Server
on
May, 22 2009
using
texi2html