axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava ClassRep.java
Date Fri, 01 Feb 2002 23:17:17 GMT
tomj        02/02/01 15:17:17

  Modified:    java/src/org/apache/axis/wsdl/fromJava ClassRep.java
  Log:
  Back off on method inheritance change for the weekend.
  
  Revision  Changes    Path
  1.10      +24 -0     xml-axis/java/src/org/apache/axis/wsdl/fromJava/ClassRep.java
  
  Index: ClassRep.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/ClassRep.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ClassRep.java	1 Feb 2002 22:46:13 -0000	1.9
  +++ ClassRep.java	1 Feb 2002 23:17:17 -0000	1.10
  @@ -222,6 +222,29 @@
           // Constructs a vector of all the public methods
           Method[] m;
           
  +        if (inhMethods)
  +            m = cls.getMethods();
  +        else
  +            m = cls.getDeclaredMethods();
  +        
  +        // add each method in this class to the list
  +        for (int i=0; i < m.length; i++) {
  +            int mod = m[i].getModifiers();
  +            if (Modifier.isPublic(mod) &&
  +                    // Ignore the getParameterName method from the Skeleton class
  +                    (!m[i].getName().equals("getParameterName") ||
  +                    !(Skeleton.class).isAssignableFrom(m[i].getDeclaringClass()))) {
  +                short[] modes = getParameterModes(m[i]);
  +                Class[] types = getParameterTypes(m[i]);
  +                _methods.add(new MethodRep(m[i], types, modes,
  +                                           getParameterNames(m[i], implClass, types)));
  +            }
  +        }
  +        
  +        
  +/*
  +        // tomj - There is a problem here with interfaces
  +        
           // iterate up the inheritance chain and construct the list of methods
           Class currentClass = cls;
           while (currentClass != null &&
  @@ -253,6 +276,7 @@
               // move up the inhertance chain
               currentClass = currentClass.getSuperclass();
           }
  +*/
           return;
       }
   
  
  
  

Mime
View raw message