Class SourceRegionExtract
java.lang.Object
org.ek9lang.compiler.common.SourceRegionExtract
- All Implemented Interfaces:
BiFunction<String,String, String>
What a page shows of a
SourceRegions body: the named region (the whole body when the region is null), with
every marker line removed, each elided run replaced by ONE // ... <name> comment at the run's indentation,
leading and trailing blank lines dropped, and the result dedented to its least-indented line. Hold an instance.-
Constructor Details
-
SourceRegionExtract
public SourceRegionExtract()
-
-
Method Details
-
apply
The region of the body as a page shows it.- Specified by:
applyin interfaceBiFunction<String,String, String> - Throws:
IllegalArgumentException- when the markers are malformed or the region is not declared
-