|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Location.SearchDirection> com.android.tools.lint.detector.api.Location.SearchDirection
public static enum Location.SearchDirection
Whether to look forwards, or backwards, or in both directions, when searching for a pattern in the source code to determine the right position range for a given symbol.
When dealing with bytecode for example, there are only line number entries within method bodies, so when searching for the method declaration, we should only search backwards from the first line entry in the method.
Enum Constant Summary | |
---|---|
BACKWARD
Only search backwards |
|
EOL_BACKWARD
Search backwards from the current end of line (normally it's the beginning of the current line) |
|
FORWARD
Only search forwards |
|
NEAREST
Search both forwards and backwards from the given line, and prefer the match that is closest |
Method Summary | |
---|---|
static Location.SearchDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Location.SearchDirection[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Location.SearchDirection FORWARD
public static final Location.SearchDirection BACKWARD
public static final Location.SearchDirection EOL_BACKWARD
public static final Location.SearchDirection NEAREST
Method Detail |
---|
public static Location.SearchDirection[] values()
for (Location.SearchDirection c : Location.SearchDirection.values()) System.out.println(c);
public static Location.SearchDirection 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 name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |