Record Class CustomAttribute
java.lang.Object
java.lang.Record
net.codecrete.windowsapi.winmd.tables.CustomAttribute
- Record Components:
parent- parent annotated with this attribute (HasCustomAttribute coded index)constructor- constructor method (CustomAttributeType coded index)value- attribute value (blob index)
Row of the "CustomAttribute" table.
See ECMA-335, II.22.10 CustomAttribute
-
Constructor Summary
ConstructorsConstructorDescriptionCustomAttribute(int parent, int constructor, int value) Creates an instance of aCustomAttributerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconstructorrecord component.Coded index of the constructor method (MethodDefOrRef).final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intparent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
CustomAttribute
public CustomAttribute(int parent, int constructor, int value) Creates an instance of aCustomAttributerecord class.- Parameters:
parent- the value for theparentrecord componentconstructor- the value for theconstructorrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
constructorIndex
Coded index of the constructor method (MethodDefOrRef).- Returns:
- coded index
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
parent
-
constructor
public int constructor()Returns the value of theconstructorrecord component.- Returns:
- the value of the
constructorrecord component
-
value
-