Meaningless Drivel is fun!
The moose likes Java in General and the fly likes create method at run time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "create method at run time" Watch "create method at run time" New topic

create method at run time

Nada Mohammed
Ranch Hand

Joined: Sep 22, 2000
Posts: 30
Hello ,
how i can create method at run time and decide its name and its return type also at run time . I now how to use reflect package to return class information but i don't now how to create method so pleeease i need any body to give me an example if it is possible
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

Is this what you mean?

Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
I agree. Here's the link:
subject: create method at run time
jQuery in Action, 3rd edition