* 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
47 lines
898 B
C++
47 lines
898 B
C++
#include "data/graph/token_component/TokenComponentAccess.h"
|
|
|
|
std::string TokenComponentAccess::getAccessString(AccessKind access)
|
|
{
|
|
switch (access)
|
|
{
|
|
case ACCESS_PUBLIC:
|
|
return "public";
|
|
case ACCESS_PROTECTED:
|
|
return "protected";
|
|
case ACCESS_PRIVATE:
|
|
return "private";
|
|
case ACCESS_DEFAULT:
|
|
return "default";
|
|
case ACCESS_TEMPLATE_PARAMETER:
|
|
return "template parameter";
|
|
case ACCESS_TYPE_PARAMETER:
|
|
return "type parameter";
|
|
}
|
|
return "";
|
|
}
|
|
|
|
|
|
TokenComponentAccess::TokenComponentAccess(AccessKind access)
|
|
: m_access(access)
|
|
{
|
|
}
|
|
|
|
TokenComponentAccess::~TokenComponentAccess()
|
|
{
|
|
}
|
|
|
|
std::shared_ptr<TokenComponent> TokenComponentAccess::copy() const
|
|
{
|
|
return std::make_shared<TokenComponentAccess>(*this);
|
|
}
|
|
|
|
AccessKind TokenComponentAccess::getAccess() const
|
|
{
|
|
return m_access;
|
|
}
|
|
|
|
std::string TokenComponentAccess::getAccessString() const
|
|
{
|
|
return getAccessString(m_access);
|
|
}
|