jni/test/AClass.java

60 lines
801 B
Java

package test;
public class AClass {
public static int staticintval = 100;
public int intval = 0;
public static int GetStaticInt() {
return staticintval;
}
public static void SetStaticInt(int val) {
staticintval = val;
}
public void IncInt() {
intval = intval + 1;
}
public int GetInt() {
return intval;
}
public boolean GetBoolean() {
return true;
}
public byte GetByte() {
return 127;
}
public char GetChar() {
return 65432;
}
public short GetShort() {
return 512;
}
public long GetLong() {
return 1L<<33;
}
public float GetFloat() {
return 4.321f;
}
public double GetDouble() {
return 5.4321;
}
public void SetInt(int val) {
intval = val;
}
public void AddInts(int val1, int val2) {
intval = val1 + val2;
}
}