Class TPasCio
Unit
Declaration
type TPasCio = class(TPasType)
Description
Extends TPasItem to store all items in a class / an object, e.g. fields.
Hierarchy
- TObject
- TSerializable
- TBaseItem
- TPasItem
- TPasType
- TPasCio
Overview
Fields
FClassDirective: TClassDirective; |
|
FFields: TPasItems; |
|
FMethods: TPasMethods; |
|
FProperties: TPasProperties; |
|
FAncestors: TStringPairVector; |
|
FOutputFileName: string; |
|
FMyType: TCIOType; |
|
FHelperTypeIdentifier: string; |
|
FCios: TPasNestedCios; |
|
FTypes: TPasTypes; |
|
FNameWithGeneric: string; |
Methods
procedure Serialize(const ADestination: TStream); override; |
|
procedure Deserialize(const ASource: TStream); override; |
|
procedure StoreMemberTag(ThisTag: TTag; var ThisTagData: TObject; EnclosingTag: TTag; var EnclosingTagData: TObject; const TagParameter: string; var ReplaceStr: string); |
|
constructor Create; override; |
|
destructor Destroy; override; |
|
function FindItem(const ItemName: string): TBaseItem; override; |
|
function FindItemMaybeInAncestors(const ItemName: string): TBaseItem; override; |
|
function FindItemInAncestors(const ItemName: string): TPasItem; |
|
procedure Sort(const SortSettings: TSortSettings); override; |
|
procedure RegisterTags(TagManager: TTagManager); override; |
|
function FirstAncestor: TPasItem; |
|
function FirstAncestorName: string; |
|
function ShowVisibility: boolean; |
Properties
property Ancestors: TStringPairVector read FAncestors; |
|
property Cios: TPasNestedCios read FCios; |
|
property ClassDirective: TClassDirective read FClassDirective
write FClassDirective; |
|
property Fields: TPasItems read FFields; |
|
property HelperTypeIdentifier: string read FHelperTypeIdentifier
write FHelperTypeIdentifier; |
|
property Methods: TPasMethods read FMethods; |
|
property Properties: TPasProperties read FProperties; |
|
property MyType: TCIOType read FMyType write FMyType; |
|
property OutputFileName: string read FOutputFileName write FOutputFileName; |
|
property Types: TPasTypes read FTypes; |
|
property NameWithGeneric: string read FNameWithGeneric write FNameWithGeneric; |
Description
Fields
FClassDirective: TClassDirective; |
|
FFields: TPasItems; |
|
FMethods: TPasMethods; |
|
FProperties: TPasProperties; |
|
FAncestors: TStringPairVector; |
|
FOutputFileName: string; |
|
FMyType: TCIOType; |
|
FHelperTypeIdentifier: string; |
|
FCios: TPasNestedCios; |
|
FTypes: TPasTypes; |
|
FNameWithGeneric: string; |
|
Methods
procedure Serialize(const ADestination: TStream); override; |
|
procedure Deserialize(const ASource: TStream); override; |
|
procedure StoreMemberTag(ThisTag: TTag; var ThisTagData: TObject; EnclosingTag: TTag; var EnclosingTagData: TObject; const TagParameter: string; var ReplaceStr: string); |
|
constructor Create; override; |
|
destructor Destroy; override; |
|
function FindItem(const ItemName: string): TBaseItem; override; |
|
If this class (or interface or object) contains a field, method or property with the name of ItemName, the corresponding item pointer is returned. |
function FindItemMaybeInAncestors(const ItemName: string): TBaseItem; override; |
|
function FindItemInAncestors(const ItemName: string): TPasItem; |
|
This searches for item (field, method or property) defined in ancestor of this cio. I.e. searches within the FirstAncestor, then within FirstAncestor.FirstAncestor, and so on. Returns nil if not found. |
procedure Sort(const SortSettings: TSortSettings); override; |
|
procedure RegisterTags(TagManager: TTagManager); override; |
|
function FirstAncestor: TPasItem; |
|
This returns Ancestors[0].Data, i.e. instance of the first ancestor of this Cio (or nil if it couldn't be found), or nil if Ancestors.Count = 0. |
function ShowVisibility: boolean; |
|
Is Visibility of items (Fields, Methods, Properties) important ? |
Properties
property Ancestors: TStringPairVector read FAncestors; |
|
Name of the ancestor (class, object, interface). Each item is a TStringPair, with
Note that each ancestor is a TPasItem, not necessarily TPasCio. Consider e.g. the case TMyStringList = Classes.TStringList; TMyExtendedStringList = class(TMyStringList) ... end; At least for now, such declaration will result in TPasType (not TPasCio!) with Name = 'TMyStringList', which means that ancestor of TMyExtendedStringList will be a TPasType instance. Note that the PasDoc_Parser already takes care of correctly setting Ancestors when user didn't specify any ancestor name at cio declaration. E.g. if this cio is a class, and user didn't specify ancestor name at class declaration, and this class name is not 'TObject' (in case pasdoc parses the RTL), the Ancestors[0] will be set to 'TObject'. |
property Cios: TPasNestedCios read FCios; |
|
Nested classes (and records, interfaces...). |
property ClassDirective: TClassDirective read FClassDirective
write FClassDirective; |
|
|
property Fields: TPasItems read FFields; |
|
list of all fields |
property HelperTypeIdentifier: string read FHelperTypeIdentifier
write FHelperTypeIdentifier; |
|
Class or record helper type identifier |
property Methods: TPasMethods read FMethods; |
|
list of all methods |
property Properties: TPasProperties read FProperties; |
|
list of properties |
property MyType: TCIOType read FMyType write FMyType; |
|
determines if this is a class, an interface or an object |
property OutputFileName: string read FOutputFileName write FOutputFileName; |
|
name of documentation output file (if each class / object gets its own file, that's the case for HTML, but not for TeX) |
property Types: TPasTypes read FTypes; |
|
Simple nested types (that don't fall into Cios). |
property NameWithGeneric: string read FNameWithGeneric write FNameWithGeneric; |
|
Name, with optional "generic" directive before (for FPC generics) and generic type identifiers list "<foo,bar>" after (for FPC and Delphi generics). |
Generated by PasDoc 0.16.0.