Record Class ScriptDefinition
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.script.common.definition.ScriptDefinition
public record ScriptDefinition(String bundleId, Path root, List<ScriptSource> sources)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionScriptDefinition(String bundleId, Path root, List<ScriptSource> sources) Creates an instance of aScriptDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbundleId()Returns the value of thebundleIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ScriptDefinitionof(String bundleId, BundleFiles files, Set<ScriptEnv> activeEnvs) Builds a definition from the files of a bundle.root()Returns the value of therootrecord component.sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptDefinition
Creates an instance of aScriptDefinitionrecord class.- Parameters:
bundleId- the value for thebundleIdrecord componentroot- the value for therootrecord componentsources- the value for thesourcesrecord component
-
-
Method Details
-
of
Builds a definition from the files of a bundle. -
sources
-
byClassName
-
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). -
bundleId
Returns the value of thebundleIdrecord component.- Returns:
- the value of the
bundleIdrecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-