root/test/lisp/cedet/semantic-utest-ia-resources/testjavacomp.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. scFuncOne
  2. scFuncOne
  3. funcOne
  4. funcTwo
  5. funcThree
  6. ncFuncOne
  7. ncFuncOne
  8. publicFunc

     1 //  testjavacomp.java --- Semantic unit test for Java
     2 
     3 // Copyright (C) 2009-2023 Free Software Foundation, Inc.
     4 
     5 //  Author: Eric M. Ludlam <zappo@gnu.org>
     6 
     7 //  This file is part of GNU Emacs.
     8 
     9 //  GNU Emacs is free software: you can redistribute it and/or modify
    10 //  it under the terms of the GNU General Public License as published by
    11 //  the Free Software Foundation, either version 3 of the License, or
    12 //  (at your option) any later version.
    13 
    14 //  GNU Emacs is distributed in the hope that it will be useful,
    15 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
    16 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17 //  GNU General Public License for more details.
    18 
    19 //  You should have received a copy of the GNU General Public License
    20 //  along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
    21 
    22 package tests.testjavacomp;
    23 
    24 class secondClass {
    25     private void scFuncOne() {    }
    26     public void scFuncOne() {    }
    27 
    28     int package_protected_field;
    29     public int public_protected_field;
    30     private int private_protected_field;
    31 }
    32 
    33 
    34 public class testjavacomp {
    35 
    36     private int funcOne() {    }
    37     private int funcTwo() {    }
    38     private char funcThree() {    }
    39 
    40     class nestedClass {
    41         private void ncFuncOne() {      }
    42         public void ncFuncOne() {       }
    43     }
    44 
    45     public void publicFunc() {
    46 
    47         int i;
    48 
    49         i = fu// -1-
    50             // #1# ( "funcOne" "funcTwo" )
    51             ;
    52 
    53         fu// -2-
    54             // #2# ( "funcOne" "funcThree" "funcTwo" )
    55             ;
    56 
    57         secondClass SC;
    58 
    59         SC.s//-3-
    60             // #3# ( "scFuncOne" )
    61             ;
    62 
    63         // @TODO - to make this test complete, we need an import
    64         //         with a package protected field that is excluded
    65         //         from the completion list.
    66         SC.p//-4-
    67             // #4# ( "package_protected_field" "public_protected_field" )
    68 
    69         nestedClass NC;
    70 
    71         // @todo - need to fix this?  I don't know if  this is legal java.
    72         NC.// - 5-
    73             // #5# ( "ncFuncOne" )
    74             ;
    75     }
    76 
    77 } // testjavacomp

/* [<][>][^][v][top][bottom][index][help] */