Record Class HarvestedMethod
java.lang.Object
java.lang.Record
org.ek9lang.compiler.fuzz.HarvestedMethod
-
Constructor Summary
ConstructorsConstructorDescriptionHarvestedMethod(String name, String returnTypeName, List<String> parameterTypeNames, boolean isAbstract, boolean isPure, boolean isPrivate) Creates an instance of aHarvestedMethodrecord 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 theisAbstractrecord component.booleanReturns the value of theisPrivaterecord component.booleanisPure()Returns the value of theisPurerecord component.name()Returns the value of thenamerecord component.Returns the value of theparameterTypeNamesrecord component.Returns the value of thereturnTypeNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarvestedMethod
public HarvestedMethod(String name, String returnTypeName, List<String> parameterTypeNames, boolean isAbstract, boolean isPure, boolean isPrivate) Creates an instance of aHarvestedMethodrecord class.- Parameters:
name- the value for thenamerecord componentreturnTypeName- the value for thereturnTypeNamerecord componentparameterTypeNames- the value for theparameterTypeNamesrecord componentisAbstract- the value for theisAbstractrecord componentisPure- the value for theisPurerecord componentisPrivate- the value for theisPrivaterecord component
-
-
Method Details
-
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
returnTypeName
Returns the value of thereturnTypeNamerecord component.- Returns:
- the value of the
returnTypeNamerecord component
-
parameterTypeNames
-
isAbstract
public boolean isAbstract()Returns the value of theisAbstractrecord component.- Returns:
- the value of the
isAbstractrecord component
-
isPure
public boolean isPure()Returns the value of theisPurerecord component.- Returns:
- the value of the
isPurerecord component
-
isPrivate
public boolean isPrivate()Returns the value of theisPrivaterecord component.- Returns:
- the value of the
isPrivaterecord component
-