logic: added all previous java version to Java language standard selection

This commit is contained in:
mlangkabel
2017-11-06 18:49:29 +01:00
parent 595f918f4d
commit 6fad9eea84
12 changed files with 279 additions and 15 deletions
@@ -9,9 +9,11 @@ IndexerCommandJava::IndexerCommandJava(
const FilePath& sourceFilePath,
const std::set<FilePath>& indexedPaths,
const std::set<FilePath>& excludedPaths,
const std::string& languageStandard,
const std::vector<FilePath>& classPath
)
: IndexerCommand(sourceFilePath, indexedPaths, excludedPaths)
, m_languageStandard(languageStandard)
, m_classPath(classPath)
{
}
@@ -37,6 +39,11 @@ size_t IndexerCommandJava::getByteSize(size_t stringSize) const
return size;
}
std::string IndexerCommandJava::getLanguageStandard() const
{
return m_languageStandard;
}
std::vector<FilePath> IndexerCommandJava::getClassPath() const
{
return m_classPath;
@@ -17,15 +17,19 @@ public:
const FilePath& sourceFilePath,
const std::set<FilePath>& indexedPaths,
const std::set<FilePath>& excludedPaths,
const std::string& languageStandard,
const std::vector<FilePath>& classPath);
virtual ~IndexerCommandJava();
virtual IndexerCommandType getIndexerCommandType() const override;
virtual size_t getByteSize(size_t stringSize) const override;
std::string getLanguageStandard() const;
std::vector<FilePath> getClassPath() const;
private:
const std::string m_languageStandard;
std::vector<FilePath> m_classPath;
};