A class file contains bytecode, you'll to decompile it to the source and the modify and recompile!