mercredi 22 mars 2017

How to rename a String variable dynamically using javassist?

I have a class named sample and I need to rename the variable messageID to NameID such that the corresponding getters and setter are also updated.

public class Sample{
   String messageID;
    public String getMessageID() {
        return MessageID;
    }
    public void setMessageID(String messageID) {
        MessageID = messageID;
    }
}





Aucun commentaire:

Enregistrer un commentaire