java: Method access flags

Signed-off-by: Pekka Enberg <penberg@kernel.org>