Record Class ModFileScanData.AnnotationData

java.lang.Object
java.lang.Record
net.neoforged.neoforgespi.language.ModFileScanData.AnnotationData
Enclosing class:
ModFileScanData

public static record ModFileScanData.AnnotationData(org.objectweb.asm.Type annotationType, ElementType targetType, org.objectweb.asm.Type clazz, String memberName, Map<String,Object> annotationData) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Map<String,Object>
    The field for the annotationData record component.
    private final org.objectweb.asm.Type
    The field for the annotationType record component.
    private final org.objectweb.asm.Type
    The field for the clazz record component.
    private final String
    The field for the memberName record component.
    private final ElementType
    The field for the targetType record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AnnotationData(org.objectweb.asm.Type annotationType, ElementType targetType, org.objectweb.asm.Type clazz, String memberName, Map<String,Object> annotationData)
    Creates an instance of a AnnotationData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the annotationData record component.
    org.objectweb.asm.Type
    Returns the value of the annotationType record component.
    org.objectweb.asm.Type
    Returns the value of the clazz record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the memberName record component.
    Returns the value of the targetType record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • annotationType

      private final org.objectweb.asm.Type annotationType
      The field for the annotationType record component.
    • targetType

      private final ElementType targetType
      The field for the targetType record component.
    • clazz

      private final org.objectweb.asm.Type clazz
      The field for the clazz record component.
    • memberName

      private final String memberName
      The field for the memberName record component.
    • annotationData

      private final Map<String,Object> annotationData
      The field for the annotationData record component.
  • Constructor Details

    • AnnotationData

      public AnnotationData(org.objectweb.asm.Type annotationType, ElementType targetType, org.objectweb.asm.Type clazz, String memberName, Map<String,Object> annotationData)
      Creates an instance of a AnnotationData record class.
      Parameters:
      annotationType - the value for the annotationType record component
      targetType - the value for the targetType record component
      clazz - the value for the clazz record component
      memberName - the value for the memberName record component
      annotationData - the value for the annotationData record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • annotationType

      public org.objectweb.asm.Type annotationType()
      Returns the value of the annotationType record component.
      Returns:
      the value of the annotationType record component
    • targetType

      public ElementType targetType()
      Returns the value of the targetType record component.
      Returns:
      the value of the targetType record component
    • clazz

      public org.objectweb.asm.Type clazz()
      Returns the value of the clazz record component.
      Returns:
      the value of the clazz record component
    • memberName

      public String memberName()
      Returns the value of the memberName record component.
      Returns:
      the value of the memberName record component
    • annotationData

      public Map<String,Object> annotationData()
      Returns the value of the annotationData record component.
      Returns:
      the value of the annotationData record component