Package com.vaadin.copilot.javarewriter
Record Class ComponentTypeAndSourceLocation
java.lang.Object
java.lang.Record
com.vaadin.copilot.javarewriter.ComponentTypeAndSourceLocation
public record ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class> inheritanceChain, com.vaadin.flow.component.Component component, File javaFile, com.vaadin.flow.component.internal.ComponentTracker.Location createLocation, com.vaadin.flow.component.internal.ComponentTracker.Location attachLocation, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children)
extends Record
Information about a component in the source code.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class> inheritanceChain, com.vaadin.flow.component.Component component, File javaFile, com.vaadin.flow.component.internal.ComponentTracker.Location createLocation, com.vaadin.flow.component.internal.ComponentTracker.Location attachLocation, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates an instance of aComponentTypeAndSourceLocationrecord class.ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class> inheritanceChain, File javaFile, com.vaadin.flow.component.internal.ComponentTracker.Location createLocation, com.vaadin.flow.component.internal.ComponentTracker.Location attachLocation, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates the entry where component is setnull -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.internal.ComponentTracker.LocationReturns the value of theattachLocationrecord component.children()Returns the value of thechildrenrecord component.com.vaadin.flow.component.ComponentReturns the value of thecomponentrecord component.com.vaadin.flow.component.internal.ComponentTracker.LocationReturns the value of thecreateLocationrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theinheritanceChainrecord component.javaFile()Returns the value of thejavaFilerecord component.parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.Class<? extends com.vaadin.flow.component.Component> type()Returns the value of thetyperecord component.
-
Constructor Details
-
ComponentTypeAndSourceLocation
public ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class> inheritanceChain, File javaFile, com.vaadin.flow.component.internal.ComponentTracker.Location createLocation, com.vaadin.flow.component.internal.ComponentTracker.Location attachLocation, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates the entry where component is setnull -
ComponentTypeAndSourceLocation
public ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class> inheritanceChain, com.vaadin.flow.component.Component component, File javaFile, com.vaadin.flow.component.internal.ComponentTracker.Location createLocation, com.vaadin.flow.component.internal.ComponentTracker.Location attachLocation, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates an instance of aComponentTypeAndSourceLocationrecord class.- Parameters:
type- the value for thetyperecord componentinheritanceChain- the value for theinheritanceChainrecord componentcomponent- the value for thecomponentrecord componentjavaFile- the value for thejavaFilerecord componentcreateLocation- the value for thecreateLocationrecord componentattachLocation- the value for theattachLocationrecord componentparent- the value for theparentrecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
inheritanceChain
Returns the value of theinheritanceChainrecord component.- Returns:
- the value of the
inheritanceChainrecord component
-
component
public com.vaadin.flow.component.Component component()Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-
javaFile
Returns the value of thejavaFilerecord component.- Returns:
- the value of the
javaFilerecord component
-
createLocation
public com.vaadin.flow.component.internal.ComponentTracker.Location createLocation()Returns the value of thecreateLocationrecord component.- Returns:
- the value of the
createLocationrecord component
-
attachLocation
public com.vaadin.flow.component.internal.ComponentTracker.Location 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
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-