Skip to content

PartitionByClass

cpgames edited this page Jul 12, 2022 · 1 revision

image

Partitions input Partition by all classes. Furthermore class partitions will be partitioned by scope, modifier, category, name, and body.

Note: This will also extract nested classes, e.g.

public class Class1
{
    public class Class2
    {
    }
}

will produce 2 partitions:

public class Class1
{
    public class Class2
    {
    }
}

and

public class Class2
{
}

Input Ports:

Start - execution entry.
Partition (type: Partition) - input partition.
ScopeFilter (public/private/protected/internal) - only classes with scope matching this filter will be returned.
ClassModifierFilter (static/abstract/sealed) - only classes with modifier matching this filter will be returned.
TypeCategoryFilter (class/interface/struct/enum) - only classes (or other types) matching this category will be returned.
ClassNameFilter (type: regex string) - only classes with names matching this filter will be returned. If left empty, all classes will be returned.


Output Ports:

Done - execution exit.
Loop - executes for each class.
Class (type: Partition) - partitioned class block.
Scope (type: Partition) - class scope (public/private/protected/internal/null if empty).
ClassModifier (type: Partition) - class modifier (static/abstract/sealed/null if empty).
TypeCategory (type: Partition) - type category (class/interface/struct/enum).
ClassName (type: Partition) - name of the class (does not include generic arguments).
ClassBody (type: Partition) - body of the class (everything inside {} brackets).


Example:

image

Clone this wiki locally