No you cannot alter the Java API source code.