How to invoke assignment operator in a native method?



Hi,

Could you please help me to figure out how to invoke assignment operator in a native method (C/C++ side)?
For StringBuffer "append" method I am doing the following:
....
jmethodID methodId = env->GetMethodID(objClass, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
....

Can I do something like this for Integer's assignment operator? Something like:

jmethodID methodId = env->GetMethodID(objClass, "=", "(Ljava/lang/Integer;)Ljava/lang/Integer;");

And then just invoke it via: env->CallObjectMethod(..., methodId,....)


Thank you!
.



Relevant Pages

  • How to invoke assignment operator in a native method?
    ... Could you please help me to figure out how to invoke assignment operator in a native method (C/C++ side)? ... For StringBuffer "append" method I am doing the following: ...
    (comp.lang.java.help)
  • Re: Searching and replacing multiple strings in text
    ... I suggested creating a Hashtable of the word pairs to be ... append the transform to a StringBuffer. ... compose words in StringBuffers by whatever rules you want. ... For an original estimate of the StringBuffer length use the original ...
    (comp.lang.java.programmer)
  • Re: Strings as value objects
    ... I don't find append() ugly at all, ... StringBuffer sb = new StringBuffer; ...
    (comp.object)
  • Re: Division of Dollar value
    ... write a loop that looks at each char in turn and discards it if it is ... $ or, and if not, append to a StringBuffer. ... Keep in mind Europeans reverse the meaning of, ...
    (comp.lang.java.programmer)
  • Re: Why can a final(!) StringBuffer can be appended?
    ... Robert Klemme wrote: ... The StringBuffer is not re-created on the system so ... Kind regards ... If append is specifically your problem, you could get around it by setting the StringBuffer to be the exact size you need. ...
    (comp.lang.java.programmer)