/[classpath]/gjdoc/src/gnu/classpath/tools/gjdoc/ExecutableMemberDocImpl.java
ViewVC logotype

Diff of /gjdoc/src/gnu/classpath/tools/gjdoc/ExecutableMemberDocImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by julian, Tue Mar 8 15:08:26 2005 UTC revision 1.10 by julian, Thu May 5 01:17:38 2005 UTC
# Line 94  public class ExecutableMemberDocImpl ext Line 94  public class ExecutableMemberDocImpl ext
94                                                            char[] source, int startIndex, int endIndex) throws IOException, ParseException {                                                            char[] source, int startIndex, int endIndex) throws IOException, ParseException {
95    
96        int lastchar=32;        int lastchar=32;
97        String methodName="";        StringBuffer methodName=new StringBuffer();
98        for (int i=startIndex; i<endIndex && source[i]!='('; ++i) {        for (int i=startIndex; i<endIndex && source[i]!='('; ++i) {
99           if (Parser.WHITESPACE.indexOf(lastchar)>=0 && Parser.WHITESPACE.indexOf(source[i])<0)           if ((Parser.WHITESPACE.indexOf(lastchar)>=0 && Parser.WHITESPACE.indexOf(source[i])<0)
100              methodName=""+source[i];               || (lastchar == ']' && Parser.WHITESPACE.indexOf(source[i])<0 && '[' != source[i])) {
101           else if (Parser.WHITESPACE.indexOf(source[i])<0)              methodName.setLength(0);
102              methodName+=source[i];              methodName.append(source[i]);
103                         }
104             else if (Parser.WHITESPACE.indexOf(source[i])<0) {
105                methodName.append(source[i]);
106             }
107           lastchar=source[i];           lastchar=source[i];
108        }        }
109    
# Line 108  public class ExecutableMemberDocImpl ext Line 111  public class ExecutableMemberDocImpl ext
111    
112        SourcePosition position = DocImpl.getPosition(containingClass, source, startIndex);        SourcePosition position = DocImpl.getPosition(containingClass, source, startIndex);
113    
114        if (methodName.equals(((ClassDocImpl)containingClass).getClassName())) {        if (methodName.toString().equals(((ClassDocImpl)containingClass).getClassName())) {
115                    
116           // Constructor           // Constructor
117    
# Line 129  public class ExecutableMemberDocImpl ext Line 132  public class ExecutableMemberDocImpl ext
132           rc.accessLevel=ACCESS_PUBLIC;           rc.accessLevel=ACCESS_PUBLIC;
133    
134        int ndx=rc.parseModifiers(source, startIndex, endIndex);        int ndx=rc.parseModifiers(source, startIndex, endIndex);
135        String name="";        StringBuffer name = new StringBuffer();
136    
137        final int STATE_NORMAL=1;        final int STATE_NORMAL=1;
138        final int STATE_STARC=2;        final int STATE_STARC=2;
# Line 148  public class ExecutableMemberDocImpl ext Line 151  public class ExecutableMemberDocImpl ext
151                 state=STATE_STARC;                 state=STATE_STARC;
152              }              }
153              else {              else {
154                 name+=source[ndx];                 name.append(source[ndx]);
155              }              }
156           }           }
157           else if (state==STATE_SLASHC) {           else if (state==STATE_SLASHC) {
# Line 163  public class ExecutableMemberDocImpl ext Line 166  public class ExecutableMemberDocImpl ext
166           }           }
167           ++ndx;           ++ndx;
168        }        }
169        rc.setName(name.trim());        rc.setName(name.toString().trim());
170    
171        state=STATE_NORMAL;        state=STATE_NORMAL;
172                

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26