Record Class ScriptLanguageService.Workspace
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptLanguageService.Workspace
- Enclosing interface:
ScriptLanguageService
public static record ScriptLanguageService.Workspace(Path projectRoot, ClassLoader classLoader, Collection<Path> projectClasspath, Map<String,String> options)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWorkspace(Path projectRoot, ClassLoader classLoader, Collection<Path> projectClasspath, Map<String, String> options) Creates an instance of aWorkspacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassLoaderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.options()Returns the value of theoptionsrecord component.Returns the value of theprojectClasspathrecord component.Returns the value of theprojectRootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Workspace
-
Workspace
public Workspace(Path projectRoot, ClassLoader classLoader, Collection<Path> projectClasspath, Map<String, String> options) Creates an instance of aWorkspacerecord class.- Parameters:
projectRoot- the value for theprojectRootrecord componentclassLoader- the value for theclassLoaderrecord componentprojectClasspath- the value for theprojectClasspathrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
projectRoot
Returns the value of theprojectRootrecord component.- Returns:
- the value of the
projectRootrecord component
-
classLoader
Returns the value of theclassLoaderrecord component.- Returns:
- the value of the
classLoaderrecord component
-
projectClasspath
Returns the value of theprojectClasspathrecord component.- Returns:
- the value of the
projectClasspathrecord component
-
options
-