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

File:InterfaceGenerator
Purpose:Generates an Include-file for a given Class-file
Author(s):Sebastian Wandel / Consultingwerk Ltd.
Created:Thu Sep 10 13:55:38 CEST 2020



Top Method Summary
Options Name Purpose
# CHARACTER GenerateUsing (logical, logical, logical) Generates a string from eUsing
# ParseBaseClass (INode, character) Parses the Base-Class to a given Class-Node
# Consultingwerk.Studio.ProparseApi.INode ParseClass (character) Parses the class
# PopulateUsing (INode) Populates the eUsing temp-table with a classes using-statements
+ ProcessFile (character, character, character) Processes a class-file to generate an interface from its public members
# CHARACTER Spaces (integer) Returnes a string with a given number of spaces


Method Detail
Top

PROTECTED CHARACTER GenerateUsing (logical, logical, logical)

Purpose: Generates a string from eUsing
Notes:

Parameters:
plSort LOGICAL
If true the Using-Statements are sorted alphabetically
plFormat LOGICAL
If true the Using-Statemets are formatted (FROM on same column)
plShorten LOGICAL
If true the Using-Statements use the .* format
Returns CHARACTER
String with the USING-Statements
Top

PROTECTED ParseBaseClass (INode, character)

Purpose: Parses the Base-Class to a given Class-Node
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
CLASS-Node with child of type INHERITS
pcAnnotation CHARACTER
Annotation to filter for
Top

PROTECTED Consultingwerk.Studio.ProparseApi.INode ParseClass (character)

Purpose: Parses the class
Notes:

Parameters:
pcClassname CHARACTER
Name of the class
Returns Consultingwerk.Studio.ProparseApi.INode
TopNode of the parsed class
Top

PROTECTED PopulateUsing (INode)

Purpose: Populates the eUsing temp-table with a classes using-statements
Notes:

Parameters:
poTopNode Consultingwerk.Studio.ProparseApi.INode
TopNode of the class
Top

PUBLIC ProcessFile (character, character, character)

Purpose: Processes a class-file to generate an interface from its public members
Notes:

Parameters:
pcClassName CHARACTER
Name of the class to process
pcInterfaceName CHARACTER
Name of the interface to generate
pcAnnotation CHARACTER
Annotation to filter public members by
Top

PROTECTED CHARACTER Spaces (integer)

Purpose: Returnes a string with a given number of spaces
Notes:

Parameters:
piLength INTEGER
Number of spaces
Returns CHARACTER
String with piLength spaces


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