implements basic javagen statements.