Enum GoSourceCodeFilter.SourceSetType
- java.lang.Object
-
- java.lang.Enum<GoSourceCodeFilter.SourceSetType>
-
- com.github.blindpirate.gogradle.common.GoSourceCodeFilter.SourceSetType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GoSourceCodeFilter.SourceSetType>
- Enclosing class:
- GoSourceCodeFilter
public static enum GoSourceCodeFilter.SourceSetType extends java.lang.Enum<GoSourceCodeFilter.SourceSetType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROJECT_AND_VENDOR_BUILD_FILESAll non-test go files in project directory as well as all non-test go files in vendor directoryPROJECT_BUILD_FILES_ONLYAll non-test go files in project directory, not including any files in vendor directoryPROJECT_TEST_AND_VENDOR_BUILD_FILESAll *.go files in project directory as well as all non-test go files in vendor directoryPROJECT_TEST_FILES_ONLYAll *_test.go files in project directory, not including any files in vendor directory
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GoSourceCodeFilter.SourceSetTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GoSourceCodeFilter.SourceSetType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROJECT_BUILD_FILES_ONLY
public static final GoSourceCodeFilter.SourceSetType PROJECT_BUILD_FILES_ONLY
All non-test go files in project directory, not including any files in vendor directory
-
PROJECT_TEST_FILES_ONLY
public static final GoSourceCodeFilter.SourceSetType PROJECT_TEST_FILES_ONLY
All *_test.go files in project directory, not including any files in vendor directory
-
PROJECT_AND_VENDOR_BUILD_FILES
public static final GoSourceCodeFilter.SourceSetType PROJECT_AND_VENDOR_BUILD_FILES
All non-test go files in project directory as well as all non-test go files in vendor directory
-
PROJECT_TEST_AND_VENDOR_BUILD_FILES
public static final GoSourceCodeFilter.SourceSetType PROJECT_TEST_AND_VENDOR_BUILD_FILES
All *.go files in project directory as well as all non-test go files in vendor directory
-
-
Method Detail
-
values
public static GoSourceCodeFilter.SourceSetType[] 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 (GoSourceCodeFilter.SourceSetType c : GoSourceCodeFilter.SourceSetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GoSourceCodeFilter.SourceSetType 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
-
-