File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method Invocation Problem

 
Serkan Demir
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a question on method invocation. Assume that i have a method, named "Factory(int code)".And it executes a pre-defined method according to its parameter. Do you know there is a way for such a method invocation,or in other words,transition from String to method invocation?


public void Factory(int code){
String methodName="getDescription_"+code+"()";
/* How can i invoke "methodName" method at this line?? */

}
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing simple:
 
Serkan Demir
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks lot.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic