Enum Class TestFileType

java.lang.Object
java.lang.Enum<TestFileType>
org.gnome.glib.TestFileType
All Implemented Interfaces:
Serializable, Comparable<TestFileType>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum TestFileType extends Enum<TestFileType> implements Enumeration

The type of file to return the filename for, when used with GLib.testBuildFilename(TestFileType, String, Object...).

These two options correspond rather directly to the 'dist' and 'built' terminology that automake uses and are explicitly used to distinguish between the 'srcdir' and 'builddir' being separate. All files in your project should either be dist (in the EXTRA_DIST or dist_schema_DATA sense, in which case they will always be in the srcdir) or built (in the BUILT_SOURCES sense, in which case they will always be in the builddir).

Note: As a general rule of automake, files that are generated only as part of the build-from-git process (but then are distributed with the tarball) always go in srcdir (even if doing a srcdir != builddir build from git) and are considered as distributed files.

The same principles apply for other build systems, such as meson.

Since:
2.38
  • Enum Constant Details

    • DIST

      public static final TestFileType DIST
      a file that was included in the distribution tarball
    • BUILT

      public static final TestFileType BUILT
      a file that was built on the compiling machine
  • Method Details

    • values

      public static TestFileType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TestFileType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static TestFileType of(int value)
      Create a new TestFileType for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static TestFileType of(MemorySegment address)
      Create a new TestFileType for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address