Namespace: Consultingwerk.Studio.Refactor.Callgraph
Class 
CallQualificationParser Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Studio.Proparse.NodeWalker.INodeAction

File:QualificationParser
Purpose:This class implements the INodeAction interface.
Its method, ProcessNode, adds qualifications to a given node.
Implementations of IPreCallBack and IPostCallback can optionally
be passed to the constructor.
Author(s):Sebastian Wandel / Consultingwerk Ltd.
Created:Fri Jul 24 10:17:29 CEST 2020



Top Method Summary
Options Name Purpose
- AddQualification (character, character) Helper method that adds a given entry to a given list if it is not already in it
- CHARACTER GetBlock (integer, character) Returns the guid of the inner-most block containing a given NodeNum
- CHARACTER GetLocking (JPNode) Helper method that looks for a locking statement in a node
- LOGICAL IsDatabaseReference (JPNode) Helper method that checks whether a given node references a database
+ LOGICAL ProcessNode (JPNode) Processes the nodes and adds qualifications to the eRoutine record of the parent-routine

Top Constructor Summary
Options Name Purpose
+ CallQualificationParser (dataset) Creates a new QualificationParser instance
+ CallQualificationParser (dataset, ICallGraphPreCallback) Creates a new QualificationParser instance
+ CallQualificationParser (dataset, ICallGraphPreCallback, ICallGraphPostCallback) Creates a new QualificationParser instance


Method Detail
Top

PRIVATE AddQualification (character, character)

Purpose: Helper method that adds a given entry to a given list if it is not already in it
Notes:

Parameters:
pcList CHARACTER
List to which the entry is being added
pcQualification CHARACTER
The entry that is to be added.
Top

PRIVATE CHARACTER GetBlock (integer, character)

Purpose: Returns the guid of the inner-most block containing a given NodeNum
Notes:

Parameters:
piNodeNum INTEGER
The given NodeNum
pcBlockGuid CHARACTER
Guid of the block from which the search starts
Returns CHARACTER
The guid of the inner-most block containing piNodeNum
Top

PRIVATE CHARACTER GetLocking (JPNode)

Purpose: Helper method that looks for a locking statement in a node
Notes: The method checks for NO-LOCK and EXCLUSIVE-LOCK,
everything else (missing lock or SHARE-LOCK) is interpreted as SHARE-LOCK

Parameters:
poNode org.prorefactor.core.JPNode
Node whose child-nodes are checked
Returns CHARACTER
NOLOCK, SHARELOCK or EXCLUSIVELOCK
Top

PRIVATE LOGICAL IsDatabaseReference (JPNode)

Purpose: Helper method that checks whether a given node references a database
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
Node to be checked
Returns LOGICAL
Logical value indicating whether poNode references a database
Top

PUBLIC LOGICAL ProcessNode (JPNode)

Purpose: Processes the nodes and adds qualifications to the eRoutine record of the parent-routine
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
Currently processed node
Returns LOGICAL
Logical value indicating if the process should be cancelled


Constructor Detail
Top

PUBLIC CallQualificationParser (dataset)

Purpose: Creates a new QualificationParser instance
Notes: This constructor does not use the callbacks, they are set to ?

Parameters:
dsCallgraph DATASET dsCallgraph
Dataset containing a populated dsCallgraph dataset
Top

PUBLIC CallQualificationParser (dataset, ICallGraphPreCallback)

Purpose: Creates a new QualificationParser instance
Notes: This constructor only uses the IPreCallback, IPostCallback is set to ?

Parameters:
dsCallgraph DATASET dsCallgraph
Dataset containing a populated dsCallgraph dataset
poPreCallback Consultingwerk.Studio.Refactor.Callgraph.ICallGraphPreCallback
Implementation of IPreCallback which can be used to exclude certain nodes from processing
Top

PUBLIC CallQualificationParser (dataset, ICallGraphPreCallback, ICallGraphPostCallback)

Purpose: Creates a new QualificationParser instance
Notes: This constructor uses both callbacks

Parameters:
dsCallgraph DATASET dsCallgraph
Dataset containing a populated dsCallgraph dataset
poPreCallback Consultingwerk.Studio.Refactor.Callgraph.ICallGraphPreCallback
Implementation of IPreCallback which can be used to exclude certain nodes from processing
poPostCallback Consultingwerk.Studio.Refactor.Callgraph.ICallGraphPostCallback
Implementation of IPostCallback which can be used to alter the qualification of the nodes


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:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 19:02:48