Parse Java annotations with parameters

Closes #924.