Namespace: Consultingwerk.Studio.Refactor.Callgraph
Class 
Callgraph Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:Callgraph
Purpose:This class offers one method, Create, that can be used
to create a Callgraph for a set of files
Author(s):Sebastian Wandel / Consultingwerk Ltd.
Created:Wed Jul 15 12:32:40 CEST 2020



Top Method Summary
Options Name Purpose
+ Create (table, dataset, ICallCallback, ICallGraphPreCallback, ICallGraphPostCallback, logical, ICustomRunStatementParser) Creates a Callgraph for a set of Files
+ Create (table, dataset) Creates a Callgraph for a set of Files
+ Create (table, dataset, ICallCallback) Creates a Callgraph for a set of Files and calls a callback method after an eCall record has been created.
+ Create (table, dataset, ICallCallback, ICallGraphPreCallback) Creates a Callgraph for a set of Files
- FillTriggerProcedures () Fills the TriggerProcedures temp-table
- org.prorefactor.core.JPNode FindNodeWithNum (JPNode, integer) Finds a node with a given NodeNum
- org.prorefactor.core.JPNode GetNodeWithNum (ParseUnit, integer) Returns the node with the given NodeNum of the given ParseUnit

Top Constructor Summary
Options Name Purpose
+ Callgraph () Constructor for the Callgraph class


Method Detail
Top

PUBLIC Create (table, dataset, ICallCallback, ICallGraphPreCallback, ICallGraphPostCallback, logical, ICustomRunStatementParser)

Purpose: Creates a Callgraph for a set of Files
Notes: This method uses all callbacks

Parameters:
ttFileNames TEMP-TABLE ttFileNames
Temp-Table containing the names of the files for which the callgraph is to be generated
dsCallgraph DATASET dsCallgraph
Existing dataset filled with the callgraph for the files in ttFileNames
poCallCallback Consultingwerk.Studio.Refactor.Callgraph.ICallCallback
Allows changes to eCall records
poPreCallback Consultingwerk.Studio.Refactor.Callgraph.ICallGraphPreCallback
Allows skipping nodes when assigning qualifications
poPostCallback Consultingwerk.Studio.Refactor.Callgraph.ICallGraphPostCallback
Allows adding custom qualifications
plEmpty LOGICAL
True to empty the callgraph before creating the new one
poCustomParser Consultingwerk.Studio.Refactor.Callgraph.ICustomRunStatementParser
Custom parser for RUN statements
Top

PUBLIC Create (table, dataset)

Purpose: Creates a Callgraph for a set of Files
Notes: This method does not use callbacks

Parameters:
ttFileNames TEMP-TABLE ttFileNames
Temp-Table containing the names of the files for which the callgraph is to be generated
dsCallgraph DATASET dsCallgraph
Resulting dataset with the callgraph for the files in ttFileNames
Top

PUBLIC Create (table, dataset, ICallCallback)

Purpose: Creates a Callgraph for a set of Files and calls a callback method after an eCall record has been created.
Notes: This method only uses the ICallCallback

Parameters:
ttFileNames TEMP-TABLE ttFileNames
Temp-Table containing the names of the files for which the callgraph is to be generated
dsCallgraph DATASET dsCallgraph
Resulting dataset with the callgraph for the files in ttFileNames
poCallCallback Consultingwerk.Studio.Refactor.Callgraph.ICallCallback
Allows changes to eCall records
Top

PUBLIC Create (table, dataset, ICallCallback, ICallGraphPreCallback)

Purpose: Creates a Callgraph for a set of Files
Notes: This method does not use the IPostCallback

Parameters:
ttFileNames TEMP-TABLE ttFileNames
Temp-Table containing the names of the files for which the callgraph is to be generated
dsCallgraph DATASET dsCallgraph
Resulting dataset with the callgraph for the files in ttFileNames
poCallCallback Consultingwerk.Studio.Refactor.Callgraph.ICallCallback
Allows changes to eCall records
poPreCallback Consultingwerk.Studio.Refactor.Callgraph.ICallGraphPreCallback
Allows skipping nodes when assigning qualifications
Top

PRIVATE FillTriggerProcedures ()

Purpose: Fills the TriggerProcedures temp-table
Notes:

Top

PRIVATE org.prorefactor.core.JPNode FindNodeWithNum (JPNode, integer)

Purpose: Finds a node with a given NodeNum
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The node to start the search from
piNodeNum INTEGER
The NodeNum of the sought node
Returns org.prorefactor.core.JPNode
The node with piNodeNum
Top

PRIVATE org.prorefactor.core.JPNode GetNodeWithNum (ParseUnit, integer)

Purpose: Returns the node with the given NodeNum of the given ParseUnit
Notes:

Parameters:
poParseUnit org.prorefactor.treeparser.ParseUnit
The ParseUnit to search the node in
piNodeNum INTEGER
The NodeNum of the sought node
Returns org.prorefactor.core.JPNode
The node with piNodeNum in poParseUnit


Constructor Detail
Top

PUBLIC Callgraph ()

Purpose: Constructor for the Callgraph class
Notes: Uses the ISessionSuperProcedureProvider service to process known super procedures.



ProDataset Detail

ProDataset dsCallgraph

Member tables: eProgram, eRoutine, eBlock, eCall


Temp-Table Detail

Temp-Table eBlock

Defined in:

Temp-Table eCall

Defined in:

Temp-Table eProgram

Defined in:

Temp-Table eRoutine

Defined in:

Temp-Table ttFileNames

Defined in:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:16:10