com.android.prefs
Enum AndroidLocation.EnvVar
java.lang.Object
java.lang.Enum<AndroidLocation.EnvVar>
com.android.prefs.AndroidLocation.EnvVar
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<AndroidLocation.EnvVar>
- Enclosing class:
- AndroidLocation
public static enum AndroidLocation.EnvVar
- extends java.lang.Enum<AndroidLocation.EnvVar>
Enum describing which variables to check and whether they should
be checked via System.getProperty(String)
or System.getenv()
or both.
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 |
ANDROID_AVD_HOME
public static final AndroidLocation.EnvVar ANDROID_AVD_HOME
ANDROID_SDK_HOME
public static final AndroidLocation.EnvVar ANDROID_SDK_HOME
USER_HOME
public static final AndroidLocation.EnvVar USER_HOME
HOME
public static final AndroidLocation.EnvVar HOME
values
public static AndroidLocation.EnvVar[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AndroidLocation.EnvVar c : AndroidLocation.EnvVar.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AndroidLocation.EnvVar valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getName
public java.lang.String getName()
validatePath
@Nullable
public java.lang.String validatePath(boolean silent)
throws AndroidLocation.AndroidLocationException
- Throws:
AndroidLocation.AndroidLocationException