Record Class ScriptCompilationContext
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptCompilationContext
- Record Components:
parent- The parent class loader visible to the compiled script;nullselects the engine class loader.classpath- Additional normalized class-path entries; null entries are discarded.javaVersion- The Java language level, or zero to let the provider select its default.
public record ScriptCompilationContext(ClassLoader parent, List<Path> classpath, int javaVersion)
extends Record
Build-tool-neutral inputs required to compile a script source generation.
-
Constructor Summary
ConstructorsConstructorDescriptionScriptCompilationContext(ClassLoader parent, List<Path> classpath, int javaVersion) Creates an instance of aScriptCompilationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclasspathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thejavaVersionrecord component.parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptCompilationContext
Creates an instance of aScriptCompilationContextrecord class.- Parameters:
parent- the value for theparentrecord componentclasspath- the value for theclasspathrecord componentjavaVersion- the value for thejavaVersionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
parent
-
classpath
-
javaVersion
public int javaVersion()Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-