Package org.ethelred.kiwiproc.processor
Record Class MethodParameterInfo
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.MethodParameterInfo
public record MethodParameterInfo(VariableElement variableElement, org.ethelred.kiwiproc.meta.JavaName name, KiwiType type, boolean isRecordComponent, @Nullable String recordParameterName)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMethodParameterInfo(VariableElement variableElement, org.ethelred.kiwiproc.meta.JavaName name, KiwiType type, boolean isRecordComponent, @Nullable String recordParameterName) Creates an instance of aMethodParameterInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisRecordComponentrecord component.org.ethelred.kiwiproc.meta.JavaNamename()Returns the value of thenamerecord component.@Nullable StringReturns the value of therecordParameterNamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of thevariableElementrecord component.
-
Constructor Details
-
MethodParameterInfo
public MethodParameterInfo(VariableElement variableElement, org.ethelred.kiwiproc.meta.JavaName name, KiwiType type, boolean isRecordComponent, @Nullable String recordParameterName) Creates an instance of aMethodParameterInforecord class.- Parameters:
variableElement- the value for thevariableElementrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentisRecordComponent- the value for theisRecordComponentrecord componentrecordParameterName- the value for therecordParameterNamerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
variableElement
Returns the value of thevariableElementrecord component.- Returns:
- the value of the
variableElementrecord component
-
name
public org.ethelred.kiwiproc.meta.JavaName name()Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
isRecordComponent
public boolean isRecordComponent()Returns the value of theisRecordComponentrecord component.- Returns:
- the value of the
isRecordComponentrecord component
-
recordParameterName
Returns the value of therecordParameterNamerecord component.- Returns:
- the value of the
recordParameterNamerecord component
-