data: indexing java
* expanded appsettings to include java specific stuff * added java indexer as separate project that can be build via its build script * added dependencies for java indexer to the setup folder * added license files for these dependencies. * added sample project for java. this is just to test java on other machines and can be removed again in the future. * the java parser test suite is currently uncommented because java is not running on every machine. * added some more node types * removed TokenComponentAccess::AccessType and replaced all its usages by using AccessKind * moved access components from edges to nodes * using recordReference of ParserClient for java * removed recording access specifier of inheritance edges. * added styles for new node types
This commit is contained in:
@@ -38,7 +38,11 @@ std::string NameElement::Signature::qualifyName(const std::string& name) const
|
||||
std::string qualifiedName = m_prefix;
|
||||
if (name.size() > 0)
|
||||
{
|
||||
qualifiedName += " " + name;
|
||||
if (!m_prefix.empty())
|
||||
{
|
||||
qualifiedName += " ";
|
||||
}
|
||||
qualifiedName += name;
|
||||
}
|
||||
qualifiedName += m_postfix;
|
||||
|
||||
|
||||
@@ -87,26 +87,26 @@ size_t NameHierarchy::size() const
|
||||
return m_elements.size();
|
||||
}
|
||||
|
||||
std::string NameHierarchy::getQualifiedName() const
|
||||
std::string NameHierarchy::getQualifiedName(const std::string& delimiter) const
|
||||
{
|
||||
std::string name;
|
||||
for (size_t i = 0; i < m_elements.size(); i++)
|
||||
{
|
||||
if (i > 0)
|
||||
{
|
||||
name += "::";
|
||||
name += delimiter;
|
||||
}
|
||||
name += m_elements[i]->getName();
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
std::string NameHierarchy::getQualifiedNameWithSignature() const
|
||||
std::string NameHierarchy::getQualifiedNameWithSignature(const std::string& delimiter) const
|
||||
{
|
||||
std::string name = getQualifiedName();
|
||||
std::string name = getQualifiedName(delimiter);
|
||||
if (m_elements.size())
|
||||
{
|
||||
name = m_elements.back()->getSignature().qualifyName(name);
|
||||
name = m_elements.back()->getSignature().qualifyName(name); // todo: use separator for signature!
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@ public:
|
||||
std::shared_ptr<NameElement> operator[](size_t pos) const;
|
||||
size_t size() const;
|
||||
|
||||
std::string getQualifiedName() const;
|
||||
std::string getQualifiedNameWithSignature() const;
|
||||
std::string getQualifiedName(const std::string& delimiter = "::") const;
|
||||
std::string getQualifiedNameWithSignature(const std::string& delimiter = "::") const;
|
||||
std::string getRawName() const;
|
||||
std::string getRawNameWithSignature() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user