Fujitsu J-Adapter-Class-Generator manual
Summary of contents
- NetCOBOL for Windows J Adapter Class Generator User's Guide
- Preface
- Purpose of This Manual
- Intended Readers
- Prerequisites
- Organization of This Manual
- How to Use This Manual
- Product Names
- Registered Trademarks
- Contents
- Chapter 1. Outline of J Adapter Class Generator
- What is the J Adapter Class Generator?
- What the J Adapter Class Generator Can Do
- What the J Adapter Class Generator Cannot Do
- Preparation
- Fujitsu NetCOBOL or Fujitsu NetCOBOL Runtime System
- Java Development Kit or Java Runtime Environment
- Chapter 2. Adapter Class Generator Framework
- Adapter Class
- Adapter Object
- Chapter 3. Developing Programs
- Creating Adapter Classes
- Investigating the Java Class
- Generating Adapter Class Source
- Building an Adapter Class
- Generating an Adapter Class When the Class File is Not Avail
- Reducing the Size of Adapter Class
- Specifying the Constructor/Method/Field
- Example:
- Specifying the -om Option or the \
- Example:
- Developing an Application That Uses an Adapter Class
- Outline
- Initializing the Java VM
- Terminating the Java VM
- Developing a Multithread Application
- Generating an Object
- Invoking a Method
- Manipulating a Variable
- Comparing Object References
- Assignment to a Subclass
- Mapping java.lang.String into PIC X
- End Control of Character String
- Exception Processing
- Constructing a Program
- Running a Program
- Conversion to Java2
- Chapter 4. Using the Generator Command
- Starting the J Adapter Class Generator
- Command Syntax
- When the constructor/method/field is not specified:
- When the constructor/method/field is specified:
- When the optional file is specified:
- Notes on Describing the Command
- Options
- -classpath class-path
- -c{s|u}
- -d output-folder
- -gc [\
- -gf [field-name [,...]]
- -gm [\
- -i optional-file
- -oi
- -om
- -ov
- -r
- -s[n]
- -t
- class-name/interface-name
- Environment Variable
- CLASSPATH
- Notes:
- Example
- Optional File
- Format
- Notes on describing the optional file:
- Class class-name/interface-name
- Specification format
- Specification contents
- Meaning of the parameter
- Option ClassPath
- Specification format
- Specification contents
- Option Code
- Specification format
- Meaning of the parameter
- Specification contents
- Option CommandOptions
- Specification format
- Specification contents
- Option GenOnlyUsed
- Specification format
- Specification contents
- Meaning of the parameter
- Option MethodTable
- Specification format
- Specification contents
- Meaning of the parameter
- Option OutPutPath
- Specification format
- Specification contents
- Specification format
- Specification contents
- Meaning of the parameter
- Specification format
- Specification contents
- Meaning of the parameter
- Specification format
- Specification contents
- Meaning of the parameter
- Specification format
- Specification contents
- Meaning of the parameter
- Example
- Notes
- Output
- Generation Name Management File
- Method Name Cross-Reference List File
- Chapter 5. Adapter Class Reference
- Class Configuration
- Class Hierarchy
- FJ-JAVA-BASE class
- J-NARROW Method (factory method)
- Explanation
- Syntax
- Parameter and return value
- J-DUPLICATE Method (object method)
- Explanation
- Syntax
- Parameter and return value
- J-EQUALS Method (object method)
- Explanation
- Syntax
- Parameter and return value
- FJ-JAVA-CONTROL class
- JVM-INIT Method (factory method)
- Explanation
- Syntax
- Environment variable
- Caution
- JVM-TERMINATE Method (factory method)
- Explanation
- Syntax
- Caution
- JVM-ATTACH Method (factory method)
- Explanation
- Syntax
- JVM-DETACH method (factory method)
- Explanation
- Syntax
- FJ-JAVA-ERROR class
- Methods that Acquire Exception Information
- GET-MESSAGE method (object method)
- Explanation
- Syntax
- Parameter and return value
- GET-CODE method (object method)
- Explanation
- Syntax
- Parameter and return value
- GET-EXCEPTION method (object method)
- Explanation
- Syntax
- Parameter and return value
- Class or Interface Adapter Class
- Data types
- Class and interface
- Explanation
- Expansion format
- Generation rules
- Generation example
- Supplement
- Constructor
- Explanation
- Expansion format
- Generation rules
- Generation example
- Supplement
- Class variable
- Explanation
- Expansion format
- Generation rules
- Generation rules
- Supplement
- Class method
- Explanation
- Expansion format
- Generation rules
- Generation example
- Supplement
- Instance variable
- Explanation
- Expansion format
- Generation rules
- Generation rules
- Supplement
- Instance Method
- Explanation
- Expansion format
- Generation rules
- Generation example
- Supplement
- java-lang-String class
- NEW-STRING-X method (factory method)
- Explanation
- Syntax
- Parameter and return value
- Supplement
- NEW-STRING-N method (factory method)
- Explanation
- Syntax
- Parameter and return value
- Supplement
- GET-STRING-X method (object method)
- Explanation
- Syntax
- Parameter and return value
- GET-STRING-N method (object method)
- Explanation
- Syntax
- Parameter and return value
- GET-STRING-LENGTH-X method (object method)
- Explanation
- Syntax
- Parameter and return value
- GET-STRING-LENGTH-N method (object method)
- Explanation
- Syntax
- Parameter and return value
- Array Adapter Class
- Array class
- Explanation
- Expansion format
- Generation rules
- Generation example
- NEW-ARRAY method (factory method)
- Explanation
- Syntax
- Parameter and return value
- Supplement
- GET-ARRAY-LENGTH method (object method)
- Explanation
- Syntax
- Parameter and return value
- GET-ARRAY-ELEMENT method (object method)
- Explanation
- Syntax
- Parameter and return value
- SET-ARRAY-ELEMENT method (object method)
- Explanation
- Syntax
- Parameter and return value
- Numbering Names
- Effective range of name
- Name that is always unique according to generation rules
- Name that needs to be unique between super classes/subclasse
- Example
- Name that needs to be unique within an entire run unit
- Relationships among java.io.ObjectInput interface, java.io.I
- Example
- Supplement
- Chapter 6. Messages
- Java2cob Command Messages
- Messages Output during Generation
- Messages Output during Execution
- Chapter 7. Samples
- Sample 1 – Using Classes
- Example 1: Example of using java.lang.System, java.io.Print
- Outline
- Distribution files
- COBOL functions used
- Java classes used
- Generating adapter classes
- Project build or rebuild function
- Running the program
- Sample 2 – Specifying Method
- Example 2: Example of generating an adapter class by specif
- Outline
- Distribution files
- COBOL functions used
- Java classes and constructor/method/field used
- Generating adapter classes
- Project build or rebuild function
- Running a program
- Appendix A. Message List
- Java2cob Command Messages
- Messages Output during Generation
- Messages Output during Execution
- Appendix B. Exception Type List
- 1
- Meaning
- Response
- 2
- Meaning
- Response
- 3
- Meaning
- Response
- 4
- Meaning
- Response
- 5
- Meaning
- Response
- 6
- Meaning
- Response
- 7
- Meaning
- Response
- 8
- Meaning
- Response
- 9
- Meaning
- Response
- 10
- Meaning
- Response
- 11
- Meaning
- Response
- 12
- Meaning
- Response
- 13
- Meaning
- Response
- 14
- Meaning
- Response
- 15
- Meaning
- Response
- 16
- Meaning
- Response
- 17
- Meaning
- Response
- 18
- Meaning
- Response
- 19
- Meaning
- Response
- Index