public enum NoRelativePathMode extends java.lang.Enum<NoRelativePathMode>
When indexing a file at an absolute path /project/src/main/example/Foo.java, SemanticDB needs to know the "sourceroot" path /project in order to relativize the path of the source file into src/main/example/Foo.java. This configuration option determines what the compiler plugin should do when it's not able to find a good relative path.
| Enum Constant and Description |
|---|
ERROR
Report an error message and fail the compilation.
|
INDEX_ANYWAY
Come up with a unique relative path for the SemanticDB path with no guarantee that this path
corresponds to the original path of the generated source file.
|
SKIP
Silently ignore the file, don't index it.
|
WARNING
Ignore the file, but print a message explaining it's ignored.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
validStringValues() |
static java.lang.String |
validStringValuesWithoutError() |
static NoRelativePathMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NoRelativePathMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoRelativePathMode INDEX_ANYWAY
public static final NoRelativePathMode SKIP
public static final NoRelativePathMode ERROR
public static final NoRelativePathMode WARNING
public static NoRelativePathMode[] values()
for (NoRelativePathMode c : NoRelativePathMode.values()) System.out.println(c);
public static NoRelativePathMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.lang.String validStringValuesWithoutError()
public static java.lang.String validStringValues()