scala.tools.nsc.doc.model.comment

CommentFactory

trait CommentFactory extends AnyRef

The comment parser transforms raw comment strings into Comment objects. Call parse to run the parser. Note that the parser is stateless and should only be built once for a given Scaladoc run.

Self Type
ModelFactory with CommentFactory with MemberLookup
Source
CommentFactory.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CommentFactory
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. sealed class CharReader extends AnyRef

    Attributes
    protected
  2. final case class SimpleTagKey(name: String) extends (CommentFactory.this)#TagKey with Product with Serializable

    Attributes
    protected
  3. final case class SymbolTagKey(name: String, symbol: String) extends (CommentFactory.this)#TagKey with Product with Serializable

    Attributes
    protected
  4. sealed abstract class TagKey extends AnyRef

    A key used for a tag map.

  5. final class WikiParser extends (CommentFactory.this)#CharReader

    TODO

Abstract Value Members

  1. abstract val global: Global

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from CommentFactory to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (CommentFactory, B)

    Implicit information
    This member is added by an implicit conversion from CommentFactory to ArrowAssoc[CommentFactory] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. val CleanCommentLine: Regex

    The body of a line, dropping the (optional) start star-marker, one leading whitespace and all trailing whitespace.

    The body of a line, dropping the (optional) start star-marker, one leading whitespace and all trailing whitespace.

    Attributes
    protected
  9. val CodeBlockEnd: Regex

    The end of a scaladoc code block

    The end of a scaladoc code block

    Attributes
    protected
  10. val CodeBlockStart: Regex

    The start of a scaladoc code block

    The start of a scaladoc code block

    Attributes
    protected
  11. val DangerousTags: Regex

    Dangerous HTML tags that should be replaced by something safer, such as wiki syntax, or that should be dropped.

    Dangerous HTML tags that should be replaced by something safer, such as wiki syntax, or that should be dropped.

    Attributes
    protected
  12. val JavadocTags: Regex

    Javadoc tags that should be replaced by something useful, such as wiki syntax, or that should be dropped.

    Javadoc tags that should be replaced by something useful, such as wiki syntax, or that should be dropped.

    Attributes
    protected
  13. val SafeTags: Regex

    Safe HTML tags that can be kept.

    Safe HTML tags that can be kept.

    Attributes
    protected
  14. val SimpleTag: Regex

    A Scaladoc tag not linked to a symbol.

    A Scaladoc tag not linked to a symbol. Returns the name of the tag, and the rest of the line.

    Attributes
    protected
  15. val SingleTag: Regex

    A Scaladoc tag not linked to a symbol and not followed by text

    A Scaladoc tag not linked to a symbol and not followed by text

    Attributes
    protected
  16. val SymbolTag: Regex

    A Scaladoc tag linked to a symbol.

    A Scaladoc tag linked to a symbol. Returns the name of the tag, the name of the symbol, and the rest of the line.

    Attributes
    protected
  17. def addCommentBody(sym: Global.Symbol, inTpl: (CommentFactory.this)#TemplateImpl, docStr: String, docPos: Global.Position): Global.Symbol

  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def comment(sym: Global.Symbol, currentTpl: Option[(CommentFactory.this)#DocTemplateImpl], inTpl: (CommentFactory.this)#DocTemplateImpl): Option[Comment]

  21. val commentCache: HashMap[(Global.Symbol, (CommentFactory.this)#TemplateImpl), Comment]

    Attributes
    protected
  22. def createComment(body0: Option[Body] = None, authors0: List[Body] = List.empty, see0: List[Body] = List.empty, result0: Option[Body] = None, throws0: Map[String, Body] = Map.empty, valueParams0: Map[String, Body] = Map.empty, typeParams0: Map[String, Body] = Map.empty, version0: Option[Body] = None, since0: Option[Body] = None, todo0: List[Body] = List.empty, deprecated0: Option[Body] = None, note0: List[Body] = List.empty, example0: List[Body] = List.empty, constructor0: Option[Body] = None, source0: Option[String] = None, inheritDiagram0: List[String] = List.empty, contentDiagram0: List[String] = List.empty, group0: Option[Body] = None, groupDesc0: Map[String, Body] = Map.empty, groupNames0: Map[String, Body] = Map.empty, groupPrio0: Map[String, Body] = Map.empty): Comment

  23. def defineComment(sym: Global.Symbol, currentTpl: Option[(CommentFactory.this)#DocTemplateImpl], inTpl: (CommentFactory.this)#DocTemplateImpl): Option[Comment]

    A comment is usualy created by the parser, however for some special cases we have to give some inTpl comments (parent class for example) to the comment of the symbol.

    A comment is usualy created by the parser, however for some special cases we have to give some inTpl comments (parent class for example) to the comment of the symbol. This function manages some of those cases : Param accessor and Primary constructor

  24. val endOfLine: Char

    Attributes
    protected
  25. val endOfText: Char

    Attributes
    protected
  26. def ensuring(cond: (CommentFactory) ⇒ Boolean, msg: ⇒ Any): CommentFactory

    Implicit information
    This member is added by an implicit conversion from CommentFactory to Ensuring[CommentFactory] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: (CommentFactory) ⇒ Boolean): CommentFactory

    Implicit information
    This member is added by an implicit conversion from CommentFactory to Ensuring[CommentFactory] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean, msg: ⇒ Any): CommentFactory

    Implicit information
    This member is added by an implicit conversion from CommentFactory to Ensuring[CommentFactory] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: Boolean): CommentFactory

    Implicit information
    This member is added by an implicit conversion from CommentFactory to Ensuring[CommentFactory] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  32. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from CommentFactory to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  34. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. def htmlReplacement(mtch: Match): String

    Maps a dangerous HTML tag to a safe wiki replacement, or an empty string if it cannot be salvaged.

    Maps a dangerous HTML tag to a safe wiki replacement, or an empty string if it cannot be salvaged.

    Attributes
    protected
  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. def javadocReplacement(mtch: Match): String

    Maps a javadoc tag to a useful wiki replacement, or an empty string if it cannot be salvaged.

    Maps a javadoc tag to a useful wiki replacement, or an empty string if it cannot be salvaged.

    Attributes
    protected
  39. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  40. final def notify(): Unit

    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  42. def oops(msg: String): Nothing

    Something that should not have happened, happened, and Scaladoc should exit.

    Something that should not have happened, happened, and Scaladoc should exit.

    Attributes
    protected
  43. def parse(comment: String, src: String, pos: Position, inTplOpt: Option[(CommentFactory.this)#DocTemplateImpl] = None): Comment

    Parses a raw comment string into a Comment object.

    Parses a raw comment string into a Comment object.

    comment

    The expanded comment string (including start and end markers) to be parsed.

    src

    The raw comment source string.

    pos

    The position of the comment in source.

    Attributes
    protected
  44. def parseWiki(string: String, pos: Position, inTplOpt: Option[(CommentFactory.this)#DocTemplateImpl]): Body

    Parses a string containing wiki syntax into a Comment object.

    Parses a string containing wiki syntax into a Comment object. Note that the string is assumed to be clean:

    • Removed Scaladoc start and end markers.
    • Removed start-of-line star and one whitespace afterwards (if present).
    • Removed all end-of-line whitespace.
    • Only endOfLine is used to mark line endings.
  45. val safeTagMarker: Char

    Attributes
    protected
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  51. def [B](y: B): (CommentFactory, B)

    Implicit information
    This member is added by an implicit conversion from CommentFactory to ArrowAssoc[CommentFactory] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from CommentFactory to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (commentFactory: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from CommentFactory to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (commentFactory: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: CommentFactory

    Implicit information
    This member is added by an implicit conversion from CommentFactory to ArrowAssoc[CommentFactory] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (commentFactory: ArrowAssoc[CommentFactory]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: CommentFactory

    Implicit information
    This member is added by an implicit conversion from CommentFactory to Ensuring[CommentFactory] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (commentFactory: Ensuring[CommentFactory]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from CommentFactory to StringAdd

Inherited by implicit conversion any2stringfmt from CommentFactory to StringFormat

Inherited by implicit conversion any2ArrowAssoc from CommentFactory to ArrowAssoc[CommentFactory]

Inherited by implicit conversion any2Ensuring from CommentFactory to Ensuring[CommentFactory]

Ungrouped