Class ProjectViewSectionSplitter
- java.lang.Object
-
- org.jetbrains.bsp.bazel.projectview.parser.splitter.ProjectViewSectionSplitter
-
public final class ProjectViewSectionSplitter extends java.lang.ObjectSplitter is responsible for splitting file content into "raw" sections - section name and entire section body. Also, it removes comments (starting with '#') from section contente.g.:
file content:--- import path/to/another/file.bazelproject section1: value1 # comment section2: included_value1 included_value2 -excluded_value3 ---will be split into raw sections:
1)'import'--'path/to/another/file.bazelproject\n\n'
2)'section1'--'value1 \n\n'
3)'section2'--'\n included_value1\n included_value2\n -excluded_value3\n'
-
-
Constructor Summary
Constructors Constructor Description ProjectViewSectionSplitter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProjectViewRawSectionsgetRawSectionsForFileContent(java.lang.String fileContent)
-
-
-
Method Detail
-
getRawSectionsForFileContent
public static ProjectViewRawSections getRawSectionsForFileContent(java.lang.String fileContent)
-
-