Record Class JavaParameter
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaParameter
- All Implemented Interfaces:
Comparable<JavaParameter>
public record JavaParameter(JavaMemberSignature owner, int index, JvmType type, Optional<String> name, Set<JavaParameterModifier> modifiers, int accessFlags, int unrecognizedAccessFlags)
extends Record
implements Comparable<JavaParameter>
One descriptor parameter with optional MethodParameters name and exact flags.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaParameter(JavaMemberSignature owner, int index, JvmType type, Optional<String> name, Set<JavaParameterModifier> modifiers, int accessFlags, int unrecognizedAccessFlags) Creates an instance of aJavaParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccessFlagsrecord component.intcompareTo(JavaParameter other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.Returns the value of themodifiersrecord component.name()Returns the value of thenamerecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intReturns the value of theunrecognizedAccessFlagsrecord component.
-
Constructor Details
-
JavaParameter
public JavaParameter(JavaMemberSignature owner, int index, JvmType type, Optional<String> name, Set<JavaParameterModifier> modifiers, int accessFlags, int unrecognizedAccessFlags) Creates an instance of aJavaParameterrecord class.- Parameters:
owner- the value for theownerrecord componentindex- the value for theindexrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componentmodifiers- the value for themodifiersrecord componentaccessFlags- the value for theaccessFlagsrecord componentunrecognizedAccessFlags- the value for theunrecognizedAccessFlagsrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaParameter>
-
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. -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
-
modifiers
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-
accessFlags
public int accessFlags()Returns the value of theaccessFlagsrecord component.- Returns:
- the value of the
accessFlagsrecord component
-
unrecognizedAccessFlags
public int unrecognizedAccessFlags()Returns the value of theunrecognizedAccessFlagsrecord component.- Returns:
- the value of the
unrecognizedAccessFlagsrecord component
-