Package com.vaadin.copilot.rewriter
Record Class StylePolicy.StyleCall
java.lang.Object
java.lang.Record
com.vaadin.copilot.rewriter.StylePolicy.StyleCall
- Record Components:
methodName- the method to call onStyletakesPropertyName- true for the genericset(property, value)form, which needs the property name passed as the first argument; false for a named setter, which takes the value alone
- Enclosing class:
StylePolicy
public static record StylePolicy.StyleCall(String methodName, boolean takesPropertyName)
extends Record
The call that sets a style property.
-
Constructor Summary
Constructors -
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.Returns the value of themethodNamerecord component.booleanReturns the value of thetakesPropertyNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StyleCall
Creates an instance of aStyleCallrecord class.- Parameters:
methodName- the value for themethodNamerecord componenttakesPropertyName- the value for thetakesPropertyNamerecord 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 '=='. -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
takesPropertyName
public boolean takesPropertyName()Returns the value of thetakesPropertyNamerecord component.- Returns:
- the value of the
takesPropertyNamerecord component
-