public enum CompilerRange extends java.lang.Enum<CompilerRange>
A Java compiler position has tree parts: "start", "point" and "end".
public static void main(String[] args) { }
^ start
^ point (aka. "preferred position")
^ end
A SemanticDB range has four parts: "startLine", "startCharacter", "endLine", "endCharacter".| Enum Constant and Description |
|---|
FROM_END_WITH_TEXT_SEARCH
Use text search to find the start of the symbol name, searching from the end instead of the
start.
|
FROM_POINT_TO_SYMBOL_NAME
Map the compiler point position to SemanticDB start and use (point + symbol name length) for
the SemanticDB end position.
|
FROM_POINT_TO_SYMBOL_NAME_PLUS_ONE
Map the compiler (point + 1) position to SemanticDB start and use (point + symbol name length +
1) for the SemanticDB end position.
|
FROM_POINT_WITH_TEXT_SEARCH
Use text search to find the start of the symbol name, using the point position as the starting
search offset and using (found start + symbol name length) for the SemanticDB end position.
|
FROM_START_TO_END
Map the compiler start/end positions to SemanticDB start/end positions.
|
FROM_TEXT_SEARCH
Use text search to find the start of the symbol name and use (found start + symbol name length)
for the SemanticDB end position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFromEnd() |
boolean |
isFromPoint() |
boolean |
isFromTextSearch() |
static CompilerRange |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompilerRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompilerRange FROM_START_TO_END
public static final CompilerRange FROM_POINT_TO_SYMBOL_NAME
public static final CompilerRange FROM_POINT_TO_SYMBOL_NAME_PLUS_ONE
public static final CompilerRange FROM_TEXT_SEARCH
public static final CompilerRange FROM_POINT_WITH_TEXT_SEARCH
public static final CompilerRange FROM_END_WITH_TEXT_SEARCH
public static CompilerRange[] values()
for (CompilerRange c : CompilerRange.values()) System.out.println(c);
public static CompilerRange 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 boolean isFromPoint()
public boolean isFromTextSearch()
public boolean isFromEnd()