public class FileHeaderCheck extends org.sonar.squidbridge.checks.SquidCheck<org.sonar.sslr.parser.LexerlessGrammar> implements CharsetAwareVisitor
| Modifier and Type | Field and Description |
|---|---|
String |
headerFormat |
boolean |
isRegularExpression |
| Constructor and Description |
|---|
FileHeaderCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
protected boolean |
matchesPlainTextHeader(File file) |
protected boolean |
matchesRegularExpression(File file) |
void |
setCharset(Charset charset) |
void |
visitFile(com.sonar.sslr.api.AstNode astNode) |
public String headerFormat
public boolean isRegularExpression
public void setCharset(Charset charset)
setCharset in interface CharsetAwareVisitorpublic void init()
init in class org.sonar.squidbridge.SquidAstVisitor<org.sonar.sslr.parser.LexerlessGrammar>public void visitFile(com.sonar.sslr.api.AstNode astNode)
visitFile in interface com.sonar.sslr.api.AstVisitorvisitFile in class org.sonar.squidbridge.SquidAstVisitor<org.sonar.sslr.parser.LexerlessGrammar>protected boolean matchesRegularExpression(File file)
protected boolean matchesPlainTextHeader(File file)
Copyright © 2010–2015 SonarSource. All rights reserved.