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

File:ClassMemberParser
Purpose:Builds a list of all members of a class.
Author(s):Sebastian Wandel / Consultingwerk Ltd.
Created:Fri Aug 28 09:56:23 CEST 2020



Top Method Summary
Options Name Purpose
# CHARACTER GetAccessMode (JPNode) Gets the Access-Mode of a Node if it has one
# CHARACTER GetEventSignature (JPNode, table) Gets the signature or.Net delegate type defined for an event
# CHARACTER GetMethodDataType (JPNode, table) Gets the datatype returned by a method
# CHARACTER GetPropertyDataType (JPNode, table) Gets the datatype as a property
# ParseClass (character, character, table) Parses a class file and populates a temp-table with its members
+ ParseClass (character, table) Parses a class file and populates a temp-table with its members
# ParseClassNode (character, character, JPNode, table, table) Parses the CLASS-Node for a file


Method Detail
Top

PROTECTED CHARACTER GetAccessMode (JPNode)

Purpose: Gets the Access-Mode of a Node if it has one
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The Node that either is an access-mode-node or has one as a child
Returns CHARACTER
The access-mode of poNode or ? if there was none or poNode was invalid
Top

PROTECTED CHARACTER GetEventSignature (JPNode, table)

Purpose: Gets the signature or.Net delegate type defined for an event
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The DEFINE node of the event
eUsing TEMP-TABLE eUsing
The Using statements of the current file
Returns CHARACTER
The event-signature or delegate-type
Top

PROTECTED CHARACTER GetMethodDataType (JPNode, table)

Purpose: Gets the datatype returned by a method
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
Node of type METHOD
eUsing TEMP-TABLE eUsing
The Using statements of the current file
Returns CHARACTER
The name of the return-type of the method
Top

PROTECTED CHARACTER GetPropertyDataType (JPNode, table)

Purpose: Gets the datatype as a property
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
Node of type DEFINE with a child of type PROPERTY
eUsing TEMP-TABLE eUsing
The Using statements of the current file
Returns CHARACTER
The name of the datatype of the property
Top

PROTECTED ParseClass (character, character, table)

Purpose: Parses a class file and populates a temp-table with its members
Notes: Class names are full class names with periods, no .cls

Parameters:
pcClassName CHARACTER
The file whose members are being listed
pcCurrentClass CHARACTER
The file that is being parsed
eClassMember TEMP-TABLE eClassMember
Temp-table with the members of the class in pcClassName
Top

PUBLIC ParseClass (character, table)

Purpose: Parses a class file and populates a temp-table with its members
Notes:

Parameters:
pcClassName CHARACTER
Full class name with periods, no .cls
eClassMember TEMP-TABLE eClassMember
Temp-table with the members of the class in pcClassName
Top

PROTECTED ParseClassNode (character, character, JPNode, table, table)

Purpose: Parses the CLASS-Node for a file
Notes:

Parameters:
pcClassName CHARACTER
Full class name with periods, no .cls
pcCurrentClass CHARACTER
The file that is being parsed
poClassNode org.prorefactor.core.JPNode
The node of type CLASS in pcClassName
eUsing TEMP-TABLE eUsing
Temp-table for the USING-statements of that file
eClassMember TEMP-TABLE eClassMember
Temp-table with the members of the class in pcClassName


Temp-Table Detail

Temp-Table eClassMember

Defined in:

Temp-Table eUsing

Defined in:


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