jni/test/AClass.java

69 lines
997 B
Java
Raw Normal View History

package test;
public class AClass {
public static int staticintval = 100;
public static boolean staticboolval = true;
public int intval = 0;
public static int GetStaticInt() {
return staticintval;
}
public static boolean GetStaticBoolean() {
return staticboolval;
}
public static void SetStaticInt(int val) {
staticintval = val;
}
public static void SetStaticBoolean(boolean val) {
staticboolval = 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;
}
}