public interface ImportStatementParser
ParsedFile.| Modifier and Type | Method and Description |
|---|---|
static ImportStatementParser |
defaultInstance(Charset charset)
Constructs a default instance of the parser which uses the provided charset.
|
ParsedFile |
parse(Path sourceFilePath,
LanguageSupport languageSupport)
Parses the given source file using the given
LanguageSupport
implementation to recognize import statements. |
static ImportStatementParser defaultInstance(Charset charset)
charset - The charset to use.ParsedFile parse(Path sourceFilePath, LanguageSupport languageSupport)
LanguageSupport
implementation to recognize import statements.sourceFilePath - The path of the file to parse.languageSupport - For parsing the import statements.de.skuzzle.enforcer.restrictimports.io.RuntimeIOExceptionn - In case reading the file fails.Copyright © 2014–2019. All rights reserved.