320 |
|
|
321 |
case STATE_BEGOFLINE: |
case STATE_BEGOFLINE: |
322 |
if (i==firstSentenceEnd) { |
if (i==firstSentenceEnd) { |
323 |
contextTag = addTag(tags, "text", buf.toString(), true, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", buf.toString(), true, contextClass, contextMember, contextTag, false); |
324 |
buf.setLength(0); |
buf.setLength(0); |
325 |
} |
} |
326 |
|
|
335 |
} |
} |
336 |
else if (c=='@' || (c=='{' && peek=='@') || c==EOL) { |
else if (c=='@' || (c=='{' && peek=='@') || c==EOL) { |
337 |
if (buf.length()>0) { |
if (buf.length()>0) { |
338 |
addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag); |
addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
339 |
buf.setLength(0); |
buf.setLength(0); |
340 |
} |
} |
341 |
if (c=='{') { |
if (c=='{') { |
356 |
|
|
357 |
case STATE_WHITESPACE: |
case STATE_WHITESPACE: |
358 |
if (i==firstSentenceEnd) { |
if (i==firstSentenceEnd) { |
359 |
contextTag = addTag(tags, "text", buf.toString(), true, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", buf.toString(), true, contextClass, contextMember, contextTag, false); |
360 |
buf.setLength(0); |
buf.setLength(0); |
361 |
} |
} |
362 |
|
|
369 |
} |
} |
370 |
else if (c=='@' || (c=='{' && peek=='@') || c==EOL) { |
else if (c=='@' || (c=='{' && peek=='@') || c==EOL) { |
371 |
if (buf.length()>0) { |
if (buf.length()>0) { |
372 |
contextTag = addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
373 |
buf.setLength(0); |
buf.setLength(0); |
374 |
} |
} |
375 |
if (c=='{') { |
if (c=='{') { |
405 |
} |
} |
406 |
else if (c=='@' || (c=='{' && peek=='@') || c==EOL) { |
else if (c=='@' || (c=='{' && peek=='@') || c==EOL) { |
407 |
paramValue=buf.toString(); |
paramValue=buf.toString(); |
408 |
contextTag = addTag(tags, paramName, paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, paramName, paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
409 |
buf.setLength(0); |
buf.setLength(0); |
410 |
if (c=='{') { |
if (c=='{') { |
411 |
++i; |
++i; |
441 |
if (c=='}') { |
if (c=='}') { |
442 |
// tag without value |
// tag without value |
443 |
paramName=buf.toString(); |
paramName=buf.toString(); |
444 |
contextTag = addTag(tags, paramName, "", i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, paramName, "", i<firstSentenceEnd, contextClass, contextMember, contextTag, true); |
445 |
state=prevState; |
state=prevState; |
446 |
buf.setLength(0); |
buf.setLength(0); |
447 |
} |
} |
463 |
case STATE_PARAMVALUE: |
case STATE_PARAMVALUE: |
464 |
if (c==EOL) { |
if (c==EOL) { |
465 |
paramValue=buf.toString(); |
paramValue=buf.toString(); |
466 |
contextTag = addTag(tags, paramName, paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, paramName, paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
467 |
} |
} |
468 |
else if (c=='\n') { |
else if (c=='\n') { |
469 |
buf.append(c); |
buf.append(c); |
481 |
} |
} |
482 |
else if (c==EOL || c=='}') { |
else if (c==EOL || c=='}') { |
483 |
paramValue=buf.toString(); |
paramValue=buf.toString(); |
484 |
contextTag = addTag(tags, paramName, paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, paramName, paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag, true); |
485 |
state=prevState; |
state=prevState; |
486 |
buf.setLength(0); |
buf.setLength(0); |
487 |
} |
} |
502 |
} |
} |
503 |
else if (c==EOL) { |
else if (c==EOL) { |
504 |
if (buf.length()>0) { |
if (buf.length()>0) { |
505 |
contextTag = addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
506 |
} |
} |
507 |
} |
} |
508 |
else { |
else { |
523 |
} |
} |
524 |
else if (c==EOL) { |
else if (c==EOL) { |
525 |
if (buf.length()>0) { |
if (buf.length()>0) { |
526 |
contextTag = addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", buf.toString(), i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
527 |
buf.setLength(0); |
buf.setLength(0); |
528 |
} |
} |
529 |
} |
} |
537 |
|
|
538 |
case STATE_TEXT: |
case STATE_TEXT: |
539 |
if (i==firstSentenceEnd) { |
if (i==firstSentenceEnd) { |
540 |
contextTag = addTag(tags, "text", buf.toString(), true, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", buf.toString(), true, contextClass, contextMember, contextTag, false); |
541 |
buf.setLength(0); |
buf.setLength(0); |
542 |
} |
} |
543 |
|
|
544 |
if (c==EOL) { |
if (c==EOL) { |
545 |
paramValue=buf.toString(); |
paramValue=buf.toString(); |
546 |
contextTag = addTag(tags, "text", paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
547 |
} |
} |
548 |
else if (c=='\n') { |
else if (c=='\n') { |
549 |
buf.append(c); |
buf.append(c); |
551 |
} |
} |
552 |
else if (c=='{' && peek=='@') { |
else if (c=='{' && peek=='@') { |
553 |
paramValue=buf.toString(); |
paramValue=buf.toString(); |
554 |
contextTag = addTag(tags, "text", paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag); |
contextTag = addTag(tags, "text", paramValue, i<firstSentenceEnd, contextClass, contextMember, contextTag, false); |
555 |
++i; |
++i; |
556 |
buf.setLength(0); |
buf.setLength(0); |
557 |
state=STATE_INLINEPARAM; |
state=STATE_INLINEPARAM; |
614 |
} |
} |
615 |
|
|
616 |
private static AbstractTagImpl addTag(Map tags, String name, |
private static AbstractTagImpl addTag(Map tags, String name, |
617 |
String value, boolean isFirstSentence, |
String value, boolean isFirstSentence, |
618 |
ClassDocImpl contextClass, |
ClassDocImpl contextClass, |
619 |
MemberDocImpl contextMember, |
MemberDocImpl contextMember, |
620 |
AbstractTagImpl contextTag) { |
AbstractTagImpl contextTag, |
621 |
|
boolean isInline) { |
622 |
|
|
623 |
AbstractTagImpl tag; |
AbstractTagImpl tag; |
|
boolean isInline = false; |
|
624 |
|
|
625 |
if (name.equals("param")) { |
if (name.equals("param")) { |
626 |
tag=new ParamTagImpl(value, contextClass, contextMember); |
tag=new ParamTagImpl(value, contextClass, contextMember); |