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

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

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

revision 1.19 by julian, Tue Dec 7 15:00:01 2004 UTC revision 1.20 by julian, Wed Dec 8 15:47:58 2004 UTC
# Line 320  public abstract class DocImpl implements Line 320  public abstract class DocImpl implements
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    
# Line 335  public abstract class DocImpl implements Line 335  public abstract class DocImpl implements
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=='{') {
# Line 356  public abstract class DocImpl implements Line 356  public abstract class DocImpl implements
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    
# Line 369  public abstract class DocImpl implements Line 369  public abstract class DocImpl implements
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=='{') {
# Line 405  public abstract class DocImpl implements Line 405  public abstract class DocImpl implements
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;
# Line 441  public abstract class DocImpl implements Line 441  public abstract class DocImpl implements
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              }              }
# Line 463  public abstract class DocImpl implements Line 463  public abstract class DocImpl implements
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);
# Line 481  public abstract class DocImpl implements Line 481  public abstract class DocImpl implements
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              }              }
# Line 502  public abstract class DocImpl implements Line 502  public abstract class DocImpl implements
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 {
# Line 523  public abstract class DocImpl implements Line 523  public abstract class DocImpl implements
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              }              }
# Line 537  public abstract class DocImpl implements Line 537  public abstract class DocImpl implements
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);
# Line 551  public abstract class DocImpl implements Line 551  public abstract class DocImpl implements
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;
# Line 614  public abstract class DocImpl implements Line 614  public abstract class DocImpl implements
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);

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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