Enum Class MappingFlag

java.lang.Object
java.lang.Enum<MappingFlag>
net.fabricmc.mappingio.MappingFlag
All Implemented Interfaces:
Serializable, Comparable<MappingFlag>, Constable

public enum MappingFlag extends Enum<MappingFlag>
Flags a MappingVisitor may provide to inform the caller about certain requirements.
  • Enum Constant Details

    • NEEDS_MULTIPLE_PASSES

      public static final MappingFlag NEEDS_MULTIPLE_PASSES
      Indication that the visitor may require multiple passes.
    • NEEDS_HEADER_METADATA

      public static final MappingFlag NEEDS_HEADER_METADATA
      Requirement that metadata has to be provided in the header.
    • NEEDS_METADATA_UNIQUENESS

      public static final MappingFlag NEEDS_METADATA_UNIQUENESS
      Requirement that only one metadata visit per property key can happen within a given pass. The property value passed via this visit has to be the latest one associated with the given key.
    • NEEDS_ELEMENT_UNIQUENESS

      public static final MappingFlag NEEDS_ELEMENT_UNIQUENESS
      Requirement that an element has to be visited only once within a pass.

      This means that e.g. all members and properties of a class have to be visited after the same single visitClass invocation and no other visitClass invocation with the same srcName may occur.

    • NEEDS_SRC_FIELD_DESC

      public static final MappingFlag NEEDS_SRC_FIELD_DESC
      Requirement that source field descriptors have to be supplied.
    • NEEDS_SRC_METHOD_DESC

      public static final MappingFlag NEEDS_SRC_METHOD_DESC
      Requirement that source method descriptors have to be supplied.
    • NEEDS_DST_FIELD_DESC

      public static final MappingFlag NEEDS_DST_FIELD_DESC
      Requirement that destination field descriptors have to be supplied.
    • NEEDS_DST_METHOD_DESC

      public static final MappingFlag NEEDS_DST_METHOD_DESC
      Requirement that destination method descriptors have to be supplied.
  • Field Details

  • Method Details

    • values

      public static MappingFlag[] 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 MappingFlag 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