Package com.vaadin.copilot
Record Class JavaReflectionUtil.ComponentAddableMethod
java.lang.Object
java.lang.Record
com.vaadin.copilot.JavaReflectionUtil.ComponentAddableMethod
- Record Components:
className- the simple name of the class declaring the method.methodName- the name of the addable method.paramJavaClassName- the fully qualified name of the parameter type accepted by the method (array component type if applicable).
- Enclosing class:
JavaReflectionUtil
public static record JavaReflectionUtil.ComponentAddableMethod(String className, String methodName, String paramJavaClassName)
extends Record
Represents a method in a component class that can be used to add child
components.
This record is used to capture metadata about "add" methods, including the name of the declaring class, the method name, and the name of the parameter type.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentAddableMethod(String className, String methodName, String paramJavaClassName) Creates an instance of aComponentAddableMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.Returns the value of theparamJavaClassNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentAddableMethod
Creates an instance of aComponentAddableMethodrecord class.- Parameters:
className- the value for theclassNamerecord componentmethodName- the value for themethodNamerecord componentparamJavaClassName- the value for theparamJavaClassNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
paramJavaClassName
Returns the value of theparamJavaClassNamerecord component.- Returns:
- the value of the
paramJavaClassNamerecord component
-