Record Class ScriptTemplate
java.lang.Object
java.lang.Record
build.spin.module.java.ScriptTemplate
- All Implemented Interfaces:
build.base.template.Template<build.base.template.TextOut>
-
Constructor Summary
ConstructorsConstructorDescriptionScriptTemplate(String classpath, String rootModule, String mainClass, String name) Creates an instance of aScriptTemplaterecord 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.Returns the value of themainClassrecord component.name()Returns the value of thenamerecord component.voidrender(build.base.template.TextOut out) Returns the value of therootModulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptTemplate
Creates an instance of aScriptTemplaterecord class.- Parameters:
classpath- the value for theclasspathrecord componentrootModule- the value for therootModulerecord componentmainClass- the value for themainClassrecord componentname- the value for thenamerecord component
-
-
Method Details
-
render
public void render(build.base.template.TextOut out) - Specified by:
renderin interfacebuild.base.template.Template<build.base.template.TextOut>
-
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). -
classpath
Returns the value of theclasspathrecord component.- Returns:
- the value of the
classpathrecord component
-
rootModule
Returns the value of therootModulerecord component.- Returns:
- the value of the
rootModulerecord component
-
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-