Record Class ParsedMember
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedMember
- All Implemented Interfaces:
Comparable<ParsedMember>
public record ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses, List<ParsedDynamicCallSite> dynamicCallSites, List<ParsedExceptionEvidence> exceptionEvidence, List<ParsedMethodParameter> parameters)
extends Record
implements Comparable<ParsedMember>
Backend-neutral declared field or method extracted from a class file.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode) ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers) ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature) ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses) ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses, List<ParsedDynamicCallSite> dynamicCallSites) ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses, List<ParsedDynamicCallSite> dynamicCallSites, List<ParsedExceptionEvidence> exceptionEvidence) ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses, List<ParsedDynamicCallSite> dynamicCallSites, List<ParsedExceptionEvidence> exceptionEvidence, List<ParsedMethodParameter> parameters) Creates an instance of aParsedMemberrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccessFlagsrecord component.Returns the value of thecodeAccessesrecord component.intcompareTo(ParsedMember other) Returns the value of thedescriptorrecord component.Returns the value of thedynamicCallSitesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionEvidencerecord component.Returns the value of thegenericSignaturerecord component.booleanhasCode()Returns the value of thehasCoderecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thelineNumbersrecord component.name()Returns the value of thenamerecord component.Returns the value of theparametersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedMember
public ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses, List<ParsedDynamicCallSite> dynamicCallSites, List<ParsedExceptionEvidence> exceptionEvidence, List<ParsedMethodParameter> parameters) Creates an instance of aParsedMemberrecord class.- Parameters:
kind- the value for thekindrecord componentname- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord componentaccessFlags- the value for theaccessFlagsrecord componenthasCode- the value for thehasCoderecord componentlineNumbers- the value for thelineNumbersrecord componentgenericSignature- the value for thegenericSignaturerecord componentcodeAccesses- the value for thecodeAccessesrecord componentdynamicCallSites- the value for thedynamicCallSitesrecord componentexceptionEvidence- the value for theexceptionEvidencerecord componentparameters- the value for theparametersrecord component
-
ParsedMember
public ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses, List<ParsedDynamicCallSite> dynamicCallSites, List<ParsedExceptionEvidence> exceptionEvidence) -
ParsedMember
public ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode) -
ParsedMember
public ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers) -
ParsedMember
public ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature) -
ParsedMember
public ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses) -
ParsedMember
public ParsedMember(ParsedMember.Kind kind, String name, String descriptor, int accessFlags, boolean hasCode, List<ParsedLineNumber> lineNumbers, Optional<String> genericSignature, List<ParsedCodeAccess> codeAccesses, List<ParsedDynamicCallSite> dynamicCallSites)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedMember>
-
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
-
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
-
accessFlags
public int accessFlags()Returns the value of theaccessFlagsrecord component.- Returns:
- the value of the
accessFlagsrecord component
-
hasCode
public boolean hasCode()Returns the value of thehasCoderecord component.- Returns:
- the value of the
hasCoderecord component
-
lineNumbers
Returns the value of thelineNumbersrecord component.- Returns:
- the value of the
lineNumbersrecord component
-
genericSignature
-
codeAccesses
Returns the value of thecodeAccessesrecord component.- Returns:
- the value of the
codeAccessesrecord component
-
dynamicCallSites
Returns the value of thedynamicCallSitesrecord component.- Returns:
- the value of the
dynamicCallSitesrecord component
-
exceptionEvidence
Returns the value of theexceptionEvidencerecord component.- Returns:
- the value of the
exceptionEvidencerecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-