Package com.vaadin.copilot.javarewriter
Record Class JavaRewriter.ComponentTypeAndSourceLocation
java.lang.Object
java.lang.Record
com.vaadin.copilot.javarewriter.JavaRewriter.ComponentTypeAndSourceLocation
- Enclosing class:
- JavaRewriter
public static record JavaRewriter.ComponentTypeAndSourceLocation(Class<? extends Component> type, File javaFile, ComponentTracker.Location createLocation, ComponentTracker.Location attachLocation, JavaRewriter.ComponentTypeAndSourceLocation parent)
extends Record
Information about a component in the source code.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentTypeAndSourceLocation(Class<? extends Component> type, File javaFile, ComponentTracker.Location createLocation, ComponentTracker.Location attachLocation, JavaRewriter.ComponentTypeAndSourceLocation parent) Creates an instance of aComponentTypeAndSourceLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachLocationrecord component.Returns the value of thecreateLocationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.javaFile()Returns the value of thejavaFilerecord component.parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ComponentTypeAndSourceLocation
public ComponentTypeAndSourceLocation(Class<? extends Component> type, File javaFile, ComponentTracker.Location createLocation, ComponentTracker.Location attachLocation, JavaRewriter.ComponentTypeAndSourceLocation parent) Creates an instance of aComponentTypeAndSourceLocationrecord class.- Parameters:
type- the value for thetyperecord componentjavaFile- the value for thejavaFilerecord componentcreateLocation- the value for thecreateLocationrecord componentattachLocation- the value for theattachLocationrecord componentparent- the value for theparentrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
javaFile
Returns the value of thejavaFilerecord component.- Returns:
- the value of the
javaFilerecord component
-
createLocation
Returns the value of thecreateLocationrecord component.- Returns:
- the value of the
createLocationrecord component
-
attachLocation
Returns the value of theattachLocationrecord component.- Returns:
- the value of the
attachLocationrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-