Re: writing two different bytecode parts at the same time

Eugene Kuleshov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Jochen Theodorou wrote:
>>  If I understand you correctly, right now, the closest would be to 
>> use several MethodNode instances from the tree package (those 
>> implement MethodVisitor interface) and then use InsnLists from those 
>> instances to assemble them together and call 
>> insnList.accept(methodVisitor) after that to get the result.
> the code is not 100% independent, I will have jumps from one part to the
> other... is it still possible then? If yes, that would be fabulous.
  You just need to pass a Label instance that would represent 
corresponding location in the result bytecode. Then MethodNode would 
wrap it into a LabelNode, stored in Label.info field. So, you should be 
fine.

  regards,
  Eugene
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.