Record Class JsrAnnotationRemapperProcessor.Descriptor
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.JsrAnnotationRemapperProcessor.Descriptor
- Record Components:
name- processor 名称
- All Implemented Interfaces:
Serializable,MinecraftJarProcessor.ProcessorDescriptor<JsrAnnotationRemapperProcessor>
- Enclosing class:
JsrAnnotationRemapperProcessor
public static record JsrAnnotationRemapperProcessor.Descriptor(String name)
extends Record
implements MinecraftJarProcessor.ProcessorDescriptor<JsrAnnotationRemapperProcessor>
用于在执行期重建
JsrAnnotationRemapperProcessor 的描述符.
映射表本身是常量,重建时不需要保存,故描述符中只有 processor 名称。
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProcessor(org.gradle.api.model.ObjectFactory objectFactory) 使用给定的ObjectFactory重建 processor 实例.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Descriptor
Creates an instance of aDescriptorrecord class.- Parameters:
name- the value for thenamerecord component
-
-
Method Details
-
createProcessor
public JsrAnnotationRemapperProcessor createProcessor(org.gradle.api.model.ObjectFactory objectFactory) Description copied from interface:MinecraftJarProcessor.ProcessorDescriptor使用给定的ObjectFactory重建 processor 实例.- Specified by:
createProcessorin interfaceMinecraftJarProcessor.ProcessorDescriptor<JsrAnnotationRemapperProcessor>- Parameters:
objectFactory- 用于实例化带@Inject构造函数的 processor,可安全地在执行期使用- Returns:
- 重建出的 processor 实例
-
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. -
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. -
equals
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-