Record Class CustomComponentInProject
java.lang.Object
java.lang.Record
com.vaadin.copilot.customcomponent.CustomComponentInProject
- Record Components:
componentClass- Class instance of custom componentsourceFile- Source file in the project
- All Implemented Interfaces:
CustomComponent
public record CustomComponentInProject(Class<?> componentClass, File sourceFile)
extends Record
implements CustomComponent
Contains information for custom components that are found in project sources.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.copilot.customcomponent.CustomComponent
CustomComponent.Type -
Constructor Summary
ConstructorsConstructorDescriptionCustomComponentInProject(Class<?> componentClass, File sourceFile) Creates an instance of aCustomComponentInProjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Returns the value of thecomponentClassrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()Type of custom component.final inthashCode()Returns a hash code value for this object.booleanChecks if the component extends LitTemplate.Returns the value of thesourceFilerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vaadin.copilot.customcomponent.CustomComponent
getChildAddableMethods
-
Constructor Details
-
CustomComponentInProject
Creates an instance of aCustomComponentInProjectrecord class.- Parameters:
componentClass- the value for thecomponentClassrecord componentsourceFile- the value for thesourceFilerecord component
-
-
Method Details
-
getType
Description copied from interface:CustomComponentType of custom component.- Specified by:
getTypein interfaceCustomComponent- Returns:
- type
-
litTemplate
public boolean litTemplate()Description copied from interface:CustomComponentChecks if the component extends LitTemplate.- Specified by:
litTemplatein interfaceCustomComponent- Returns:
- true if it is a LitTemplate, false otherwise
-
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). -
componentClass
Returns the value of thecomponentClassrecord component.- Specified by:
componentClassin interfaceCustomComponent- Returns:
- the value of the
componentClassrecord component
-
sourceFile
Returns the value of thesourceFilerecord component.- Returns:
- the value of the
sourceFilerecord component
-