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 aParsedJavaFilerepresentation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTATIC_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 ParsedJavaFileparse(Path sourceFilePath)Converts files into more suitableParsedJavaFileformat.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 suitableParsedJavaFileformat.- Parameters:
sourceFilePath- path of the given file- Returns:
- instance of
ParsedJavaFilecontaining encapsulated information of matter about the file.
-
parseImport
public List<ImportStatement> parseImport(String line, int lineNumber)
-
-