Record Class JavaCodeAccessTarget
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaCodeAccessTarget
- All Implemented Interfaces:
Comparable<JavaCodeAccessTarget>
public record JavaCodeAccessTarget(JvmType ownerType, String name, String descriptor, boolean method)
extends Record
implements Comparable<JavaCodeAccessTarget>
Unresolved constant-pool member target. The owner may be an array type.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaCodeAccessTarget(JvmType ownerType, String name, String descriptor, boolean method) Creates an instance of aJavaCodeAccessTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JavaCodeAccessTarget other) Returns 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.booleanmethod()Returns the value of themethodrecord component.name()Returns the value of thenamerecord component.Returns the value of theownerTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaCodeAccessTarget
Creates an instance of aJavaCodeAccessTargetrecord class.- Parameters:
ownerType- the value for theownerTyperecord componentname- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord componentmethod- the value for themethodrecord component
-
-
Method Details
-
stableKey
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaCodeAccessTarget>
-
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. -
ownerType
Returns the value of theownerTyperecord component.- Returns:
- the value of the
ownerTyperecord 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
-
method
public boolean method()Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-