Package com.github.blindpirate.gogradle
Enum GogradleGlobal
- java.lang.Object
-
- java.lang.Enum<GogradleGlobal>
-
- com.github.blindpirate.gogradle.GogradleGlobal
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GogradleGlobal>
public enum GogradleGlobal extends java.lang.Enum<GogradleGlobal>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_CHARSETstatic java.lang.StringGOGRADLE_ALIASstatic java.lang.StringGOGRADLE_BUILD_DIR_NAMEstatic java.lang.StringGOGRADLE_COMPATIBLE_VERSIONstatic java.lang.StringGOGRADLE_MODEstatic java.lang.StringGOGRADLE_REFRESHstatic java.lang.StringGOGRADLE_VERSIONstatic intMAX_DFS_DEPTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.inject.InjectorgetInjector()static <T> TgetInstance(com.google.inject.Key<T> key)static <T> TgetInstance(java.lang.Class<T> clazz)static java.lang.StringgetMode()static booleanisAlias()static booleanisOffline()static booleanisRefreshDependencies()voidsetCurrentProject(org.gradle.api.Project project)static GogradleGlobalvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GogradleGlobal[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final GogradleGlobal INSTANCE
-
-
Field Detail
-
GOGRADLE_VERSION
public static final java.lang.String GOGRADLE_VERSION
- See Also:
- Constant Field Values
-
GOGRADLE_COMPATIBLE_VERSION
public static final java.lang.String GOGRADLE_COMPATIBLE_VERSION
- See Also:
- Constant Field Values
-
DEFAULT_CHARSET
public static final java.lang.String DEFAULT_CHARSET
- See Also:
- Constant Field Values
-
GOGRADLE_BUILD_DIR_NAME
public static final java.lang.String GOGRADLE_BUILD_DIR_NAME
- See Also:
- Constant Field Values
-
MAX_DFS_DEPTH
public static final int MAX_DFS_DEPTH
- See Also:
- Constant Field Values
-
GOGRADLE_REFRESH
public static final java.lang.String GOGRADLE_REFRESH
- See Also:
- Constant Field Values
-
GOGRADLE_MODE
public static final java.lang.String GOGRADLE_MODE
- See Also:
- Constant Field Values
-
GOGRADLE_ALIAS
public static final java.lang.String GOGRADLE_ALIAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GogradleGlobal[] 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 (GogradleGlobal c : GogradleGlobal.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GogradleGlobal 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 namejava.lang.NullPointerException- if the argument is null
-
getInjector
public com.google.inject.Injector getInjector()
-
setCurrentProject
public void setCurrentProject(org.gradle.api.Project project)
-
getInstance
public static <T> T getInstance(java.lang.Class<T> clazz)
-
isOffline
public static boolean isOffline()
-
isRefreshDependencies
public static boolean isRefreshDependencies()
-
isAlias
public static boolean isAlias()
-
getMode
public static java.lang.String getMode()
-
getInstance
public static <T> T getInstance(com.google.inject.Key<T> key)
-
-