Java parser: use 'functions' instead of 'methods'.