Doc is a node in documentation tree, consisting
of type, identifier and text.
Type is one of
- attribute (*)
- author
- category
- class (*)
- const (*)
- constructor (*)
- default
- deprecated
- exclude
- function (*)
- interface (*)
- member (*)
- method (*)
- module (*)
- namespace (*)
- obsolete
- operator (*)
- param (*)
- reference (*)
- return
- see
- since
- synopsis
- throws (*)
- type
- var (*)
- version
- define (*)
If document is one marked with asterisk (*) then
it will also contain identifier which indicates
the name of documented entity.
Doc may also contain children docs.
Methods
Doc getChild()
Returns first child from this document.
Doc getChild(
string type)
Returns first child from this document matching given type.
Doc getChild(
string type,
string ident)
Returns first child from this document matching given type and identifier.
| Parameters |
type -
Type of document to search for
ident -
Identifier of document to search for
|
| Returns |
Doc or undefined, if there were no matching documents. |
| Parameters |
type -
Type of document to search for
ident -
Identifier of document to search for
|
| Returns |
list of Doc's |
string getHead()
Returns first sentence from this document's text.
string getHead(
string type)
Returns first sentence from first child document that
matches given type.
string getHead(
string type,
string ident)
Returns first sentence from first child document that
matches given type and identifier.
| Parameters |
type -
Type of document to search for
ident -
Identifier of document to search for
|
Returns document's identitier.
Returns document's name (same getType).
Returns next document (sibling).
| Returns |
Doc or undefined, if there is no next sibling. |
| Parameters |
type -
Type of document to search for
ident -
Identifier of document to search for
|
Returns document's type (same getName).
Checks if this document has children.