Package de.ikor.sip.foundation.mvnplugin
Class ImportStatementParser
- java.lang.Object
-
- de.ikor.sip.foundation.mvnplugin.ImportStatementParser
-
public final class ImportStatementParser extends Object
Parses a source file into aParsedJavaFile
representation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
STATIC_PREFIX
-
Constructor Summary
Constructors Constructor Description ImportStatementParser(Charset charset)
Constructor just for testing purposes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParsedJavaFile
parse(Path sourceFilePath)
Converts files into more suitableParsedJavaFile
format.List<ImportStatement>
parseImport(String line, int lineNumber)
-
-
-
Field Detail
-
STATIC_PREFIX
public static final String STATIC_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImportStatementParser
ImportStatementParser(Charset charset)
Constructor just for testing purposes.- Parameters:
charset
- used by te analysed project.
-
-
Method Detail
-
parse
public ParsedJavaFile parse(Path sourceFilePath)
Converts files into more suitableParsedJavaFile
format.- Parameters:
sourceFilePath
- path of the given file- Returns:
- instance of
ParsedJavaFile
containing encapsulated information of matter about the file.
-
parseImport
public List<ImportStatement> parseImport(String line, int lineNumber)
-
-