Given a class such as:
class Position { float x; float y; public static native long instance(); public static native float getX(long ptr);