Simple Java class example

The information that the user selects through the Java™ Class Importer is reflected in the type tree that is generated. The type tree contains several elements:

  • Class name and options
  • Constructor call
  • Public fields
  • Method calls

The following code is an example of the simple class SubClass (

public class SubClass
    public int _intField;
    public byte _byteArrayField[];

    public SubClass(int intPar1)
        _byteArrayField = new byte[5];

Install_dir\examples\adapters\javaclas\subclass.mtt reflects this simple example.