Article View: borland.public.jbuilder.java.language
Article #17938Dynamic object and method invocation
From: Ventru
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
13 lines
923 bytes
923 bytes
Hello: I am trying to build a template interpreter, where the template contains the name of a class and method that needs to be called; ie. classname.methodname() . My program needs to read the template and then call the appropriate class and method. I know that I can call a class, but how do I call a method in that class? ie. I have the method name in a string and an Object. How do I call that method? Thank you very much for your help. Ameet
Technical Details
Message-ID:
<6udm3q$3tn12@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,3e11980aa9f3cc8f,start X-Google-Attributes: gidf74b3,public From: "Ventru" <ventru@diamelle.com> Subject: Dynamic object and method invocation Date: 1998/09/24 Message-ID: <6udm3q$3tn12@forums.borland.com> X-Deja-AN: 394383616 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Newsgroups: borland.public.jbuilder.java.language