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

File:BlockParser
Purpose:Creates blocks from JPNodes
Author(s):Sebastian Wandel / Consultingwerk Ltd.
Created:Mon Dec 07 10:30:05 CET 2020



Top Method Summary
Options Name Purpose
- CreateBlock (JPNode, character) Creates an eBlock record for a given node with a given name
- CHARACTER GetBlock (character, integer, integer) Returns the inner-most block with a given range of NodeNums
- INTEGER IncrementAndGetCount () Increments the iCount variable and returns the new value
- LOGICAL ProcessDoNode (JPNode) Processes a JPNode of type DO
- LOGICAL ProcessForNode (JPNode) Processes a JPNode of type FOR
+ LOGICAL ProcessNode (JPNode) Processes a JPNode
- LOGICAL ProcessRepeatNode (JPNode) Processes a JPNode of type REPEAT

Top Constructor Summary
Options Name Purpose
+ BlockParser (dataset, character, character, character) Constructor of the BlockParser class


Method Detail
Top

PRIVATE CreateBlock (JPNode, character)

Purpose: Creates an eBlock record for a given node with a given name
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to create an eBlock for
pcName CHARACTER
The name of the new eBlock
Top

PRIVATE CHARACTER GetBlock (character, integer, integer)

Purpose: Returns the inner-most block with a given range of NodeNums
Notes:

Parameters:
pcGuid CHARACTER
The guid of the block to start from
piStart INTEGER
The upper NodeNum to be in the sought block
piEnd INTEGER
The lower NodeNum to be in the sought block
Returns CHARACTER
The guid of the inner-most block containing node with NodeNums piStart to piEnd
Top

PRIVATE INTEGER IncrementAndGetCount ()

Purpose: Increments the iCount variable and returns the new value
Notes:

Returns INTEGER
Incremented iCount variable
Top

PRIVATE LOGICAL ProcessDoNode (JPNode)

Purpose: Processes a JPNode of type DO
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to process
Returns LOGICAL
Logical value indicating if the process should be cancelled
Top

PRIVATE LOGICAL ProcessForNode (JPNode)

Purpose: Processes a JPNode of type FOR
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to process
Returns LOGICAL
Logical value indicating if the process should be cancelled
Top

PUBLIC LOGICAL ProcessNode (JPNode)

Purpose: Processes a JPNode
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to process
Returns LOGICAL
Logical value indicating if the process should be cancelled
Top

PRIVATE LOGICAL ProcessRepeatNode (JPNode)

Purpose: Processes a JPNode of type REPEAT
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to process
Returns LOGICAL
Logical value indicating if the process should be cancelled


Constructor Detail
Top

PUBLIC BlockParser (dataset, character, character, character)

Purpose: Constructor of the BlockParser class
Notes:

Parameters:
dsCallgraph DATASET dsCallgraph
The dataset for which the blocks are bein created
pcProgramGuid CHARACTER
The ProgramGuid of the new blocks
pcRoutineGuid CHARACTER
The RoutineGuid of the new blocks
pcRoutineName CHARACTER
The name of the routine of the new blocks


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       15.04.2024 06:16:10