Class ProjectViewSectionParser<T extends ProjectViewSection>
- java.lang.Object
-
- org.jetbrains.bsp.bazel.projectview.parser.sections.ProjectViewSectionParser<T>
-
- Type Parameters:
T- project view section which can be parsed with implementation
- Direct Known Subclasses:
ProjectViewListSectionParser
public abstract class ProjectViewSectionParser<T extends ProjectViewSection> extends java.lang.ObjectProject view file section parser, implementation should parse raw string body into given section class
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProjectViewSectionParser(ProjectViewSectionHeader sectionHeader)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisSectionParsable(java.lang.String sectionHeader)abstract Tparse(java.lang.String sectionBody)java.lang.StringsectionName()protected java.util.List<java.lang.String>splitSectionEntries(java.lang.String sectionBody)
-
-
-
Constructor Detail
-
ProjectViewSectionParser
protected ProjectViewSectionParser(ProjectViewSectionHeader sectionHeader)
-
-
Method Detail
-
parse
public abstract T parse(java.lang.String sectionBody)
-
isSectionParsable
public boolean isSectionParsable(java.lang.String sectionHeader)
-
sectionName
public java.lang.String sectionName()
-
splitSectionEntries
protected java.util.List<java.lang.String> splitSectionEntries(java.lang.String sectionBody)
-
-