Results 1 to 2 of 2
  1. #1
    aroua_doudou is offline Member
    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Question get the code of a given method

    Hi,

    I work on java project and I have the task to get the code of a java method. For example we suppose that we have this method on the project :
    public void action() {
    Etat = Etats.MEDECIN_MARCHE;
    sousEtat_Marche = Marche.RECHERCHE_VICTIME;
    Ontologie.ordreExplorer oE = (Ontologie.ordreExplorer) objet;
    NZone = oE.getNumZone();
    etape = param.getParam().etape;
    Finished = true;
    }

    And I just know the method name and the list of parameters so the result of my issue will be :

    Etat = Etats.MEDECIN_MARCHE;
    sousEtat_Marche = Marche.RECHERCHE_VICTIME;
    Ontologie.ordreExplorer oE = (Ontologie.ordreExplorer) objet;
    NZone = oE.getNumZone();
    etape = param.getParam().etape;
    Finished = true;

    thank you

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,237
    Rep Power
    19

    Default Re: get the code of a given method

    All else aside, go through and learn to follow: Code Conventions for the Java Programming Language: Contents

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 08-07-2011, 08:32 PM
  2. Bad Code method
    By manole in forum New To Java
    Replies: 12
    Last Post: 06-27-2011, 09:08 PM
  3. Java method to run code from string
    By jforce93 in forum Advanced Java
    Replies: 2
    Last Post: 02-02-2010, 10:33 PM
  4. Sychronizing a part of a code in a method
    By SarahB in forum Threads and Synchronization
    Replies: 1
    Last Post: 01-03-2010, 10:22 PM
  5. What will be output by the following code? using trim method.
    By racewithferrari in forum New To Java
    Replies: 4
    Last Post: 11-17-2009, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •