Record Class Ek9MethodKindsAttribute.Entry
java.lang.Object
java.lang.Record
org.ek9lang.compiler.backend.jvm.support.Ek9MethodKindsAttribute.Entry
- Enclosing class:
Ek9MethodKindsAttribute
public static record Ek9MethodKindsAttribute.Entry(String name, String descriptor, int kindCode, int policy)
extends Record
One per-method record: the method (name, descriptor), the
Ek9MethodKind wire
kindCode, and its MethodDebugPolicy bitset. Storing the raw kindCode
(not the resolved enum) keeps read-then-write round-trips lossless and NPE-free even when the
code is unknown to this version - kind() then returns null while the
policy bits remain usable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()The resolved kind, ornullifkindCodeis unknown to this version.intkindCode()Returns the value of thekindCoderecord component.name()Returns the value of thenamerecord component.intpolicy()Returns the value of thepolicyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
name- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord componentkindCode- the value for thekindCoderecord componentpolicy- the value for thepolicyrecord component
-
-
Method Details
-
kind
The resolved kind, ornullifkindCodeis unknown to this version. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
kindCode
public int kindCode()Returns the value of thekindCoderecord component.- Returns:
- the value of the
kindCoderecord component
-
policy
public int policy()Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-