Moved the majority of the logic in the JavaTransformer up into the new Antlr4Transformer.