Class SyntaxHighlightingVisitor
- java.lang.Object
-
- org.sonar.iac.common.extension.visitors.TreeVisitor<InputFileContext>
-
- org.sonar.iac.common.extension.visitors.SyntaxHighlightingVisitor
-
- Direct Known Subclasses:
YamlHighlightingVisitor
public abstract class SyntaxHighlightingVisitor extends TreeVisitor<InputFileContext>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.iac.common.extension.visitors.TreeVisitor
TreeVisitor.ConsumerFilter<C extends TreeContext,T extends Tree>
-
-
Field Summary
-
Fields inherited from class org.sonar.iac.common.extension.visitors.TreeVisitor
consumers
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSyntaxHighlightingVisitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidafter(InputFileContext ctx, Tree root)protected voidbefore(InputFileContext ctx, Tree root)protected voidhighlight(HasTextRange tree, org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText)protected abstract voidlanguageSpecificHighlighting()-
Methods inherited from class org.sonar.iac.common.extension.visitors.TreeVisitor
register, scan, visit
-
-
-
-
Method Detail
-
languageSpecificHighlighting
protected abstract void languageSpecificHighlighting()
-
before
protected void before(InputFileContext ctx, Tree root)
- Overrides:
beforein classTreeVisitor<InputFileContext>
-
after
protected void after(InputFileContext ctx, Tree root)
- Overrides:
afterin classTreeVisitor<InputFileContext>
-
highlight
protected void highlight(HasTextRange tree, org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText)
-
-