Added constants to gen_java.py