Record Class ParsedConstantEvidence
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedConstantEvidence
- All Implemented Interfaces:
Comparable<ParsedConstantEvidence>
public record ParsedConstantEvidence(ParsedConstantEvidence.Kind kind, int constantPoolIndex, String descriptor, Optional<ParsedMethodHandle> methodHandle, Optional<ParsedDynamicConstant> dynamicConstant, Optional<ParsedConstantLoadSite> loadSite)
extends Record
implements Comparable<ParsedConstantEvidence>
Backend-neutral typed evidence for a relevant constant-pool entry.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionParsedConstantEvidence(ParsedConstantEvidence.Kind kind, int constantPoolIndex, String descriptor, Optional<ParsedMethodHandle> methodHandle, Optional<ParsedDynamicConstant> dynamicConstant, Optional<ParsedConstantLoadSite> loadSite) Creates an instance of aParsedConstantEvidencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedConstantEvidence other) intReturns the value of theconstantPoolIndexrecord component.Returns the value of thedescriptorrecord component.Returns the value of thedynamicConstantrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.loadSite()Returns the value of theloadSiterecord component.Returns the value of themethodHandlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedConstantEvidence
public ParsedConstantEvidence(ParsedConstantEvidence.Kind kind, int constantPoolIndex, String descriptor, Optional<ParsedMethodHandle> methodHandle, Optional<ParsedDynamicConstant> dynamicConstant, Optional<ParsedConstantLoadSite> loadSite) Creates an instance of aParsedConstantEvidencerecord class.- Parameters:
kind- the value for thekindrecord componentconstantPoolIndex- the value for theconstantPoolIndexrecord componentdescriptor- the value for thedescriptorrecord componentmethodHandle- the value for themethodHandlerecord componentdynamicConstant- the value for thedynamicConstantrecord componentloadSite- the value for theloadSiterecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedConstantEvidence>
-
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. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
constantPoolIndex
public int constantPoolIndex()Returns the value of theconstantPoolIndexrecord component.- Returns:
- the value of the
constantPoolIndexrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
methodHandle
Returns the value of themethodHandlerecord component.- Returns:
- the value of the
methodHandlerecord component
-
dynamicConstant
Returns the value of thedynamicConstantrecord component.- Returns:
- the value of the
dynamicConstantrecord component
-
loadSite
Returns the value of theloadSiterecord component.- Returns:
- the value of the
loadSiterecord component
-