Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Nov 19, 2023
1 parent d5d298d commit 040479b
Show file tree
Hide file tree
Showing 17 changed files with 95 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.github.xpenatan.jparser.example.lib.NormalClass;
import com.github.xpenatan.jparser.example.lib.OperatorClass;
import com.github.xpenatan.jparser.example.lib.ReturnClass;
import com.github.xpenatan.jparser.example.lib.idl.helper.IDLFloat;
import com.github.xpenatan.jparser.example.lib.idl.helper.IDLFloatArray;

public class AppTest extends ApplicationAdapter {
Expand Down Expand Up @@ -71,11 +72,11 @@ private void initLib() {
System.out.println("returnValueObject: " + returnValueObject.get_value());

normalClass.printText(10, "printText HELLO");
IDLFloatArray floatArray = IDLFloatArray.TMP1_1;
IDLFloat floatArray = IDLFloat.TMP_1;
long pointer = floatArray.getPointer();
System.out.println("pointer: " + pointer);
normalClass.setArray(floatArray);
System.out.println("setArray: " + floatArray.getValue(0));
System.out.println("setArray: " + floatArray.getValue());
System.out.println("EnumTwoLib THIRD: " + EnumTwoLib.EnumTwoLib_THIRD);
System.out.println("EnumTwoLib FOURTH: " + EnumTwoLib.EnumTwoLib_FOURTH);
System.out.println("NormalClass.subIntValue: " + NormalClass.subIntValue(2, 1));
Expand Down
4 changes: 2 additions & 2 deletions jParser/base/src/main/java/idl/helper/IDLBool.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public IDLBool() {
super(1);
}

IDLBool set(boolean value) {
public IDLBool set(boolean value) {
setValue(0, value);
return this;
}

boolean getValue() {
public boolean getValue() {
return getValue(0);
}

Expand Down
10 changes: 5 additions & 5 deletions jParser/base/src/main/java/idl/helper/IDLBool2.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ public IDLBool2() {
super(2);
}

IDLBool2 set(boolean value0, boolean value1) {
public IDLBool2 set(boolean value0, boolean value1) {
setValue(0, value0);
setValue(1, value1);
return this;
}

IDLBool2 set0(boolean value) {
public IDLBool2 set0(boolean value) {
setValue(0, value);
return this;
}

IDLBool2 set1(boolean value) {
public IDLBool2 set1(boolean value) {
setValue(1, value);
return this;
}

boolean get0() {
public boolean get0() {
return getValue(0);
}

boolean get1() {
public boolean get1() {
return getValue(1);
}

Expand Down
14 changes: 7 additions & 7 deletions jParser/base/src/main/java/idl/helper/IDLBool3.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@ public IDLBool3() {
super(3);
}

IDLBool3 set(boolean value0, boolean value1, boolean value2) {
public IDLBool3 set(boolean value0, boolean value1, boolean value2) {
setValue(0, value0);
setValue(1, value1);
setValue(2, value2);
return this;
}

IDLBool3 set0(boolean value) {
public IDLBool3 set0(boolean value) {
setValue(0, value);
return this;
}

IDLBool3 set1(boolean value) {
public IDLBool3 set1(boolean value) {
setValue(1, value);
return this;
}

IDLBool3 set2(boolean value) {
public IDLBool3 set2(boolean value) {
setValue(2, value);
return this;
}

boolean get0() {
public boolean get0() {
return getValue(0);
}

boolean get1() {
public boolean get1() {
return getValue(1);
}

boolean get2() {
public boolean get2() {
return getValue(2);
}

Expand Down
18 changes: 9 additions & 9 deletions jParser/base/src/main/java/idl/helper/IDLBool4.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,47 +14,47 @@ public IDLBool4() {
super(4);
}

IDLBool4 set(boolean value0, boolean value1, boolean value2, boolean value3) {
public IDLBool4 set(boolean value0, boolean value1, boolean value2, boolean value3) {
setValue(0, value0);
setValue(1, value1);
setValue(2, value2);
setValue(3, value3);
return this;
}

IDLBool4 set0(boolean value) {
public IDLBool4 set0(boolean value) {
setValue(0, value);
return this;
}

IDLBool4 set1(boolean value) {
public IDLBool4 set1(boolean value) {
setValue(1, value);
return this;
}

IDLBool4 set2(boolean value) {
public IDLBool4 set2(boolean value) {
setValue(2, value);
return this;
}

IDLBool4 set3(boolean value) {
public IDLBool4 set3(boolean value) {
setValue(3, value);
return this;
}

boolean get0() {
public boolean get0() {
return getValue(0);
}

boolean get1() {
public boolean get1() {
return getValue(1);
}

boolean get2() {
public boolean get2() {
return getValue(2);
}

boolean get3() {
public boolean get3() {
return getValue(3);
}

Expand Down
4 changes: 2 additions & 2 deletions jParser/base/src/main/java/idl/helper/IDLDouble.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public IDLDouble() {
super(1);
}

IDLDouble set(double value) {
public IDLDouble set(double value) {
setValue(0, value);
return this;
}

double getValue() {
public double getValue() {
return getValue(0);
}

Expand Down
10 changes: 5 additions & 5 deletions jParser/base/src/main/java/idl/helper/IDLDouble2.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ public IDLDouble2() {
super(2);
}

IDLDouble2 set(double value0, double value1) {
public IDLDouble2 set(double value0, double value1) {
setValue(0, value0);
setValue(1, value1);
return this;
}

IDLDouble2 set0(double value) {
public IDLDouble2 set0(double value) {
setValue(0, value);
return this;
}

IDLDouble2 set1(double value) {
public IDLDouble2 set1(double value) {
setValue(1, value);
return this;
}

double get0() {
public double get0() {
return getValue(0);
}

double get1() {
public double get1() {
return getValue(1);
}

Expand Down
14 changes: 7 additions & 7 deletions jParser/base/src/main/java/idl/helper/IDLDouble3.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@ public IDLDouble3() {
super(3);
}

IDLDouble3 set(double value0, double value1, double value2) {
public IDLDouble3 set(double value0, double value1, double value2) {
setValue(0, value0);
setValue(1, value1);
setValue(2, value2);
return this;
}

IDLDouble3 set0(double value) {
public IDLDouble3 set0(double value) {
setValue(0, value);
return this;
}

IDLDouble3 set1(double value) {
public IDLDouble3 set1(double value) {
setValue(1, value);
return this;
}

IDLDouble3 set2(double value) {
public IDLDouble3 set2(double value) {
setValue(2, value);
return this;
}

double get0() {
public double get0() {
return getValue(0);
}

double get1() {
public double get1() {
return getValue(1);
}

double get2() {
public double get2() {
return getValue(2);
}

Expand Down
18 changes: 9 additions & 9 deletions jParser/base/src/main/java/idl/helper/IDLDouble4.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,47 +14,47 @@ public IDLDouble4() {
super(4);
}

IDLDouble4 set(double value0, double value1, double value2, double value3) {
public IDLDouble4 set(double value0, double value1, double value2, double value3) {
setValue(0, value0);
setValue(1, value1);
setValue(2, value2);
setValue(3, value3);
return this;
}

IDLDouble4 set0(double value) {
public IDLDouble4 set0(double value) {
setValue(0, value);
return this;
}

IDLDouble4 set1(double value) {
public IDLDouble4 set1(double value) {
setValue(1, value);
return this;
}

IDLDouble4 set2(double value) {
public IDLDouble4 set2(double value) {
setValue(2, value);
return this;
}

IDLDouble4 set3(double value) {
public IDLDouble4 set3(double value) {
setValue(3, value);
return this;
}

double get0() {
public double get0() {
return getValue(0);
}

double get1() {
public double get1() {
return getValue(1);
}

double get2() {
public double get2() {
return getValue(2);
}

double get3() {
public double get3() {
return getValue(3);
}

Expand Down
4 changes: 2 additions & 2 deletions jParser/base/src/main/java/idl/helper/IDLFloat.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public IDLFloat() {
super(1);
}

IDLFloat set(float value) {
public IDLFloat set(float value) {
setValue(0, value);
return this;
}

float getValue() {
public float getValue() {
return getValue(0);
}

Expand Down
10 changes: 5 additions & 5 deletions jParser/base/src/main/java/idl/helper/IDLFloat2.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ public IDLFloat2() {
super(2);
}

IDLFloat2 set(float value0, float value1) {
public IDLFloat2 set(float value0, float value1) {
setValue(0, value0);
setValue(1, value1);
return this;
}

IDLFloat2 set0(float value) {
public IDLFloat2 set0(float value) {
setValue(0, value);
return this;
}

IDLFloat2 set1(float value) {
public IDLFloat2 set1(float value) {
setValue(1, value);
return this;
}

float get0() {
public float get0() {
return getValue(0);
}

float get1() {
public float get1() {
return getValue(1);
}

Expand Down
Loading

0 comments on commit 040479b

Please sign in to comment.