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 |
|
|
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 |
|
|
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; |
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) { |
166 |
} |
} |
167 |
++ndx; |
++ndx; |
168 |
} |
} |
169 |
rc.setName(name.trim()); |
rc.setName(name.toString().trim()); |
170 |
|
|
171 |
state=STATE_NORMAL; |
state=STATE_NORMAL; |
172 |
|
|