Dependency Formatter
data class DependencyFormatter(isMergeDuplicateLevels: Boolean, initProcessorCount: Int, startProcessorCount: Int, nameProcessorCount: Int, endProcessorCount: Int, capitalizationPredicateCount: Int)
Content copied to clipboard
A formatter used to format dependency as path. The final result is DependencyFormatter.toPath.
Formatting order:
1. Process all 'onStart {}' in sequence:
onStart(raw): String
|
V
onStart(input): String
|
V
.......
2. Process all 'onEachName {}' in sequence:
onEachName(name): String
|
. // Use separators '.' splicing
|
V
onEachName(name): String
|
V
.......
3. Process all 'onEnd {}' in sequence:
onEnd(path): String
|
V
onEnd(output): String
|
V
.......Content copied to clipboard
Author
凛 (https://github.com/RinOrz)
Constructors
DependencyFormatter
Link copied to clipboard
Types
Functions
is Capitalize
Link copied to clipboard
If the predicate is true, the name of the corresponding dependency will be capitalized.
merge Duplicate Levels
Link copied to clipboard
Merges duplicate path levels.
not Capitalize
Link copied to clipboard
If the predicate is false, the name of the corresponding dependency will be capitalized.
on Each Name
Link copied to clipboard
Adds a processor to processes each name part of the dependency.
Properties
isMergeDuplicateLevels
Link copied to clipboard