|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.vishia.java2C.test.SimpleDataStruct
public class SimpleDataStruct
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.
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 |
|---|
short xb
shortin Java will be translated to int16 in C.
short yb
shortin Java will be translated to int16 in C.
double db
| Constructor Detail |
|---|
public SimpleDataStruct()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||