HeaderDoc::DocReference
IntroductionDescribes the properties of an API or document reference (apple_ref). DiscussionA data structure used for holding references to documents in
Each object contains the name of a header, class, or API symbol, along with its path, its unique identifier (API refeference) and bits of related information like the symbol's abstract, discussion, and declaration (where available). Member Functions
_initializeInitializes an instance of a sub _initialize ParametersabstractGets/sets the abstract associated with this doc reference. sub abstract ParametersDiscussionFor manual pages, this goes out and requests the abstract
using dbprintPrints a DocReference object for debugging purposes. sub dbprint ParametersdeclarationGets/sets the discussion associated with this doc reference. sub declaration ParametersdiscussionGets/sets the discussion associated with this doc reference. sub discussion ParametersgetCorrectWhoIsInfoSplits up the results from whois, prioritizing single entries over collective ones and earlier collective results over later ones. groupGets/sets the group associated with this doc reference. sub group ParametershiddenPrevents C API reference symbols from showing up in man page output. sub hidden isDocReturns whether this doc reference has a "doc" API reference. sub isDoc ParametersisInCacheReturns whether a UID has been seen. sub isInCache languageGets/sets the language associated with this doc reference. sub language ParametersmansrcGets/sets the mansrc value associated with this doc reference. sub mansrc ParametersDiscussionThe mansrc value refers to the part of a doc navigator comment after the "mansrc=" part. It is used to hold information about which set of man pages a man page came from (e.g. base, server, etc.). mpnameSets the man page name associated with this doc reference. sub mpname ParametersDiscussionFor doc references of man pages, this returns the name in the standard man page format, e.g. name(number). For non-man-page references, this returns an empty string. nameGets/sets the name associated with this doc reference. sub name ParametersnewCreates a new sub new ParametersoutputformatGets/sets the output format for this doc reference. sub outputformat ParameterspathGets/sets the path associated with this doc reference. sub path ParametersprintObjectAlias to sub printObject ParameterspushedGets/sets the "pushed" state for this doc reference. sub pushed ParametersDiscussionThe pushed state refers to whether the doc reference has
already been pushed into the array of doc references in
quoteForGrepQuotes a string for passing to sub quoteForGrep ParametersquoteForWhatIsQuotes a string for passing to sub quoteForWhatIs Parametersseealsosub seealso shortnameGets/sets the short name associated with this doc reference. sub shortname ParametersDiscussionThe short name refers to the name of a framework (without the trailing ".framework" or any other path parts). translateManRefMaps a man page doc reference to a C reference. sub translateManRef ParametersDiscussionUses the typeGets/sets the type associated with this doc reference. sub type ParametersDiscussionThe type refers to the part of a doc navigator comment after the "headerDoc=" part. uidGets/sets the uid associated with this doc reference. sub uid ParametersReturn ValueReturns any existing doc reference object for the specified doc ID from the current file. DiscussionIf called repeatedly, any non-doc apple_ref will stick with higher precedence than any doc apple_ref. Member Data
ABSTRACTThe $self->{ABSTRACT}
DECLARATIONThe declaration (code) associated with this doc reference. $self->{DECLARATION}
DISCUSSIONThe $self->{DISCUSSION}
GROUPThe index group for this doc reference.
(From the $self->{GROUP}
HeaderDoc::DocReference::VERSIONThe revision control revision number for this module. $HeaderDoc::DocReference::VERSION = '$Revision: 1300489638 $'; DiscussionIn the git repository, contains the number of seconds since January 1, 1970. LANGUAGEThe language part of the UID for this doc reference. $self->{LANGUAGE}
MANSRCHolds information about which set of manual pages a
man page came from. Access this variable with the
$self->{MANSRC}
NAMEThe "long name" (name specified in a tag such as
$self->{NAME}
OUTPUTFORMATUnused. $self->{OUTPUTFORMAT}
PATHThe filesystem path to the file containing this doc reference. $self->{PATH}
PUSHEDSet to 1 when the doc reference has already been added to the doc reference array so that it doesn't get added multiple times when the discussion and abstract are located. $self->{PUSHED}
SHORTNAMEThe "short name" (code symbol name or raw filename) for this doc reference. $self->{SHORTNAME}
TYPEThe type part of the UID (e.g. See the HeaderDoc User Guide for more information about API symbol markers. $self->{TYPE}
UIDThe API reference (UID) for this doc reference, e.g. //apple_ref/c/func/foo. See the HeaderDoc User Guide for more information about API symbol markers. $self->{UID}
|