org.vishia.java2C.test
Class SimpleDataStruct

java.lang.Object
  extended by org.vishia.java2C.test.SimpleDataStruct
Direct Known Subclasses:
ExpandedDataStruct

public class SimpleDataStruct
extends java.lang.Object

It is not a final (able to expand) data class. It doesn't base on ObjectJc in C. In C the struct is defined as:

typedef struct ExpandableDataStruct_Test_t
{ 
  int16 xb;
  int16 yb;
  double db;
} ExpandableDataStruct_Test_s;
It is very simple. Such an class may be used in an array. The inheritance from Object is a basic feature in Java anytime, but this feature doesn't may be used mostly. Therefore in C it can be optimized writing a @ java2c=noObject.-tag in the comment.

See also ExpandedDataStruct. Inherited classes don't base on Object too.


Field Summary
(package private)  double db
          A double variable in Java is a double variable in C too. (8 Byte float).
(package private)  short xb
          Some variables in the data class.
(package private)  short yb
          Some variables in the data class.
 
Constructor Summary
SimpleDataStruct()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xb

short xb
Some variables in the data class. shortin Java will be translated to int16 in C.


yb

short yb
Some variables in the data class. shortin Java will be translated to int16 in C.


db

double db
A double variable in Java is a double variable in C too. (8 Byte float).

Constructor Detail

SimpleDataStruct

public SimpleDataStruct()