Record Class ModJavadocProcessor.Descriptor
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.ModJavadocProcessor.Descriptor
- Record Components:
name- processor 名称
- All Implemented Interfaces:
Serializable,MinecraftJarProcessor.ProcessorDescriptor<ModJavadocProcessor>
- Enclosing class:
ModJavadocProcessor
public static record ModJavadocProcessor.Descriptor(String name)
extends Record
implements MinecraftJarProcessor.ProcessorDescriptor<ModJavadocProcessor>
用于在执行期重建
ModJavadocProcessor 的描述符.
本 processor 只在 processMappings 中生效,重建时除名称外不需要其他输入。
- 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
Description copied from interface:MinecraftJarProcessor.ProcessorDescriptor使用给定的ObjectFactory重建 processor 实例.- Specified by:
createProcessorin interfaceMinecraftJarProcessor.ProcessorDescriptor<ModJavadocProcessor>- 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
-