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, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children, boolean createdStatically)
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, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates a constructor with createdStaticallyComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class<?>> inheritanceChain, com.vaadin.flow.component.Component component, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children, boolean createdStatically) Creates an instance of aComponentTypeAndSourceLocationrecord class.ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class<?>> inheritanceChain, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates the entry where component is setnull -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.vaadin.flow.component.internal.ComponentTracker.Location> Returns the value of theattachLocationInProjectrecord component.children()Returns the value of thechildrenrecord component.com.vaadin.flow.component.ComponentReturns the value of thecomponentrecord component.booleanReturns the value of thecreatedStaticallyrecord component.Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> Returns the value of thecreateLocationInProjectrecord component.booleanIndicates whether some other object is "equal to" this one.com.vaadin.flow.component.internal.ComponentTracker.Locationcom.vaadin.flow.component.internal.ComponentTracker.LocationinthashCode()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, com.vaadin.flow.component.Component component, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children) Creates a constructor with createdStatically -
ComponentTypeAndSourceLocation
public ComponentTypeAndSourceLocation(Class<? extends com.vaadin.flow.component.Component> type, List<Class<?>> inheritanceChain, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, 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, Optional<File> javaFile, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject, Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject, ComponentTypeAndSourceLocation parent, List<ComponentTypeAndSourceLocation> children, boolean createdStatically) 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 componentcreateLocationInProject- the value for thecreateLocationInProjectrecord componentattachLocationInProject- the value for theattachLocationInProjectrecord componentparent- the value for theparentrecord componentchildren- the value for thechildrenrecord componentcreatedStatically- the value for thecreatedStaticallyrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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. -
getCreateLocationOrThrow
public com.vaadin.flow.component.internal.ComponentTracker.Location getCreateLocationOrThrow() -
getAttachLocationOrThrow
public com.vaadin.flow.component.internal.ComponentTracker.Location getAttachLocationOrThrow() -
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
-
createLocationInProject
public Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> createLocationInProject()Returns the value of thecreateLocationInProjectrecord component.- Returns:
- the value of the
createLocationInProjectrecord component
-
attachLocationInProject
public Optional<com.vaadin.flow.component.internal.ComponentTracker.Location> attachLocationInProject()Returns the value of theattachLocationInProjectrecord component.- Returns:
- the value of the
attachLocationInProjectrecord 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
-
createdStatically
public boolean createdStatically()Returns the value of thecreatedStaticallyrecord component.- Returns:
- the value of the
createdStaticallyrecord component
-