* 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
45 lines
786 B
Java
45 lines
786 B
Java
package io.coati;
|
|
|
|
import com.github.javaparser.ast.AccessSpecifier;
|
|
|
|
public enum AccessKind
|
|
{ // these values need to be the same as AccesType in C++ code
|
|
NONE(0),
|
|
PUBLIC(1),
|
|
PROTECTED(2),
|
|
PRIVATE(3),
|
|
DEFAULT(4),
|
|
TEMPLATE_PARAMETER(5),
|
|
TYPE_PARAMETER(6);
|
|
|
|
private final int m_value;
|
|
|
|
private AccessKind(int value)
|
|
{
|
|
this.m_value = value;
|
|
}
|
|
|
|
public int getValue()
|
|
{
|
|
return m_value;
|
|
}
|
|
|
|
public static AccessKind fromAccessSpecifier(AccessSpecifier specifier)
|
|
{
|
|
switch (specifier)
|
|
{
|
|
case PUBLIC:
|
|
return AccessKind.PUBLIC;
|
|
case PROTECTED:
|
|
return AccessKind.PROTECTED;
|
|
case PRIVATE:
|
|
return AccessKind.PRIVATE;
|
|
case DEFAULT:
|
|
return AccessKind.DEFAULT;
|
|
default:
|
|
return AccessKind.NONE;
|
|
}
|
|
}
|
|
}
|
|
|