Record Class AccessWidenerJarProcessor.Descriptor

java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.accesswidener.AccessWidenerJarProcessor.Descriptor
Record Components:
name - processor 名称
includeTransitive - 是否包含传递性 access widener
localAccessWidenerPath - 本地 access widener 的绝对路径,未配置时为 null
All Implemented Interfaces:
Serializable, MinecraftJarProcessor.ProcessorDescriptor<AccessWidenerJarProcessor>
Enclosing class:
AccessWidenerJarProcessor

public static record AccessWidenerJarProcessor.Descriptor(String name, boolean includeTransitive, @Nullable String localAccessWidenerPath) extends Record implements MinecraftJarProcessor.ProcessorDescriptor<AccessWidenerJarProcessor>
用于在执行期重建 AccessWidenerJarProcessor 的描述符.
See Also:
  • Constructor Details

    • Descriptor

      public Descriptor(String name, boolean includeTransitive, @Nullable String localAccessWidenerPath)
      Creates an instance of a Descriptor record class.
      Parameters:
      name - the value for the name record component
      includeTransitive - the value for the includeTransitive record component
      localAccessWidenerPath - the value for the localAccessWidenerPath record component
  • Method Details

    • createProcessor

      public AccessWidenerJarProcessor createProcessor(org.gradle.api.model.ObjectFactory objectFactory)
      Description copied from interface: MinecraftJarProcessor.ProcessorDescriptor
      使用给定的 ObjectFactory 重建 processor 实例.
      Specified by:
      createProcessor in interface MinecraftJarProcessor.ProcessorDescriptor<AccessWidenerJarProcessor>
      Parameters:
      objectFactory - 用于实例化带 @Inject 构造函数的 processor,可安全地在执行期使用
      Returns:
      重建出的 processor 实例
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • includeTransitive

      public boolean includeTransitive()
      Returns the value of the includeTransitive record component.
      Returns:
      the value of the includeTransitive record component
    • localAccessWidenerPath

      public @Nullable String localAccessWidenerPath()
      Returns the value of the localAccessWidenerPath record component.
      Returns:
      the value of the localAccessWidenerPath record component