Java parser for AI class