diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-11-24 19:27:10 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-11-24 19:27:10 +0000 |
commit | d9e3dde6d6d18b9a93e7566447cc3ee342f033d5 (patch) | |
tree | 13084c6cd10ca3d673d6eca2af3af8d96a96155f /src/compiler/scala/tools/nsc/doc/model/comment/Comment.scala | |
parent | 583e431b07fae9c3fbeb075e40d7729958df6499 (diff) | |
download | scala-d9e3dde6d6d18b9a93e7566447cc3ee342f033d5.tar.gz scala-d9e3dde6d6d18b9a93e7566447cc3ee342f033d5.tar.bz2 scala-d9e3dde6d6d18b9a93e7566447cc3ee342f033d5.zip |
Scaladoc 2.
Diffstat (limited to 'src/compiler/scala/tools/nsc/doc/model/comment/Comment.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/model/comment/Comment.scala | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/model/comment/Comment.scala b/src/compiler/scala/tools/nsc/doc/model/comment/Comment.scala new file mode 100644 index 0000000000..e30b38a8bc --- /dev/null +++ b/src/compiler/scala/tools/nsc/doc/model/comment/Comment.scala @@ -0,0 +1,58 @@ +/* NSC -- new Scala compiler -- Copyright 2007-2009 LAMP/EPFL */ + +package scala.tools.nsc +package doc +package model +package comment + +import scala.collection._ + +/** A Scaladoc comment and all its tags. + * + * '''Note:''' the only instantiation site of this class is in `Parser`. + * + * @author Gilles Dubochet + * @author Manohar Jonnalagedda */ +abstract class Comment { + + /** */ + def body: Body + /* author|deprecated|param|return|see|since|throws|version|todo|tparam */ + + /** */ + def authors: List[Body] + + /** */ + def see: List[Body] + + /** */ + def result: Option[Body] + + /** */ + def throws: Map[String, Body] + + /** */ + def valueParams: Map[String, Body] + + /** */ + def typeParams: Map[String, Body] + + /** */ + def version: Option[Body] + + /** */ + def since: Option[Body] + + /** */ + def todo: List[Body] + + /** */ + def deprecated: Option[Body] + + override def toString = + body.toString + "\n" + + (authors map ("@author " + _.toString)).mkString("\n") + + (result map ("@return " + _.toString)).mkString + +} + |