Package com.vaadin.copilot
Record Class JavaSourcePathDetector.ModuleInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.JavaSourcePathDetector.ModuleInfo
- Enclosing class:
- JavaSourcePathDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassesFolder
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thejavaSourcePaths
record component.Returns the value of thejavaTestSourcePaths
record component.name()
Returns the value of thename
record component.Returns the value of theresourcePaths
record component.rootPath()
Returns the value of therootPath
record component.Returns the value of thetestResourcePaths
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ModuleInfo
public ModuleInfo(String name, Path rootPath, List<Path> javaSourcePaths, List<Path> javaTestSourcePaths, List<Path> resourcePaths, List<Path> testResourcePaths, Path classesFolder) Creates an instance of aModuleInfo
record class.- Parameters:
name
- the value for thename
record componentrootPath
- the value for therootPath
record componentjavaSourcePaths
- the value for thejavaSourcePaths
record componentjavaTestSourcePaths
- the value for thejavaTestSourcePaths
record componentresourcePaths
- the value for theresourcePaths
record componenttestResourcePaths
- the value for thetestResourcePaths
record componentclassesFolder
- the value for theclassesFolder
record component
-
-
Method Details
-
getOrGuessResourceFolder
-
getOrGuessTestFolder
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
rootPath
Returns the value of therootPath
record component.- Returns:
- the value of the
rootPath
record component
-
javaSourcePaths
Returns the value of thejavaSourcePaths
record component.- Returns:
- the value of the
javaSourcePaths
record component
-
javaTestSourcePaths
Returns the value of thejavaTestSourcePaths
record component.- Returns:
- the value of the
javaTestSourcePaths
record component
-
resourcePaths
Returns the value of theresourcePaths
record component.- Returns:
- the value of the
resourcePaths
record component
-
testResourcePaths
Returns the value of thetestResourcePaths
record component.- Returns:
- the value of the
testResourcePaths
record component
-
classesFolder
Returns the value of theclassesFolder
record component.- Returns:
- the value of the
classesFolder
record component
-