Function List - Java Code

Function List - Java Code

2
NewbieNewbie
2

    Aug 05, 2004#1

    :?:
    ---------- Tester.java

    public class Tester {

    public String testing( String arg0,
    String arg1 )
    throws Exception {

    return null;
    }
    }

    -----------
    I am using UltraEdit32 10.10a. I found the ultraedit did not show the function list properly if the argument is in multiple lines.
    Any setting i can adjust to show the function list properly ? Thanks!

    38
    Basic UserBasic User
    38

      Aug 06, 2004#2

      Edit your wordfile.txt file definition for Java so it uses the following function strings:

      /Function String = "%[ ^t]++[ps][a-z]+[ ^t]+[a-z0-9]+[ ^t]+[a-z0-9]+[ ^t]+^(*(*[^p]++[~)]++)^)[~;]++$"
      /Function String 1 = "%[ ^t]++[ps][a-z]+[ ^t]+[a-z0-9]+[ ^t]+^(*(*[^p]++[~)]++)^)[~;]++$"
      /Function String 2 = "%[ ^t]++[ps][a-z]+[ ^t]+^([a-z0-9]+[ ^t]++(*[^p]++[~)]++)^)[~;]++$"


      Should pickup the second argument just fine.

      This is from the Java 1.4 wordfile available at http://www.ultraedit.com/files/wf/java14.uew.

      Dan
      Daniel Kirkdorffer
      http://www.kirkdorffer.com/

      2
      NewbieNewbie
      2

        Aug 06, 2004#3

        It works fine. Thanks.

        1
        NewbieNewbie
        1

          Aug 20, 2004#4

          Do you know how to get this C++ function to be recognized?

          extern "C" LIBEXPORT RETURN_STRUCT *calculateDiscrete(
          char* assign_num,
          char* plan_date,
          char* split_indicator
          )
          {
          ...
          }

          I've been toying with the word file for a while but to no avail. :(

          38
          Basic UserBasic User
          38

            Aug 20, 2004#5

            I suggest you post a new topic asking this question so that it can be tracked better.

            Dan
            Daniel Kirkdorffer
            http://www.kirkdorffer.com/

            5
            NewbieNewbie
            5

              Oct 20, 2004#6

              Hi,
              It works well with most Java methods,except for these two methods:
              1)function with default access modifier.
              void someMethod1(int anArg, Object anotherArg, String yetAnotherArg,
              Object andStillAnother) {
              ...
              }

              2)function whose return type is an array.
              private byte[] someMethod2(int anArg,Object anotherArg) {
              ...
              }

              It makes big trouble since I use UltraEdit in 1999,your help would be appreciated very much.


              Regards,
              Xu Song

              80
              Advanced UserAdvanced User
              80

                Oct 20, 2004#7

                Hamlet wrote:Do you know how to get this C++ function to be recognized?
                I made a slight modification to my C++ function strings to handle this function. The "C" caused a problem before. I did notice a problem where the last function in the file might not be recognized if it is an empty function. I'll have to look into that.

                Code: Select all

                //
                // Handles the case where Class:: is the type
                //                  type                 function name              (  parameters or none                
                /Function String = "[a-zA-Z_0-9*&]+[:]+^([~(){} ^t^p]+[ ^t]++[(]+[~;{]++)[~;{:]++^)[{=]+"
                //
                // Handles the case where type on same line as function
                //                                    type                         function name       ( parameters or none              
                /Function String 2 = "%[~(){} ^t^p#/]+[a-zA-Z_0-9*&<>: ^t^"]+[ ^t]+^([~(){} ^t^p]+[ ^t]++([~(=;]+)[~()=;{]+^)[{=]+"
                //
                // Handles the case where type on different line as function
                //                    type                           function name              (  parameters or none              
                /Function String 3 = "[a-zA-Z_0-9*&<>]+[ ^t]++[^p]+^([a-zA-Z_0-9*&=<^~]+[ ^t]++[(]+[a-zA-Z_0-9<>&* ^t,^p:/^[^]]++[)]+[ ^t^pa-zA-Z/]++^)[{=]+"
                //
                // Special case for TEST_MAIN
                //                       function name(  parameters or none          filler    start of function               
                /Function String 4 = "%^(TEST_MAIN[ ^t(]+[a-zA-Z_0-9<>&* ^t,^p]++[)]+[ ^t^p]+^)[{=]+"
                //

                  Oct 20, 2004#8

                  Function string 2 handles the function in question.