Converting MatchRule to Java.
Moving all Java files into the Java src folder.