Adding struct support for Java in compiler