Record Class VanParser.VanBlock
java.lang.Object
java.lang.Record
dev.vanengine.core.compile.VanParser.VanBlock
- Enclosing class:
VanParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.props()Returns the value of thepropsrecord component.Returns the value of thescriptServerrecord component.Returns the value of thescriptSetuprecord component.style()Returns the value of thestylerecord component.booleanReturns the value of thestyleScopedrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VanBlock
public VanBlock(String template, String scriptSetup, String scriptServer, String style, boolean styleScoped, List<VanParser.PropDef> props) Creates an instance of aVanBlockrecord class.- Parameters:
template- the value for thetemplaterecord componentscriptSetup- the value for thescriptSetuprecord componentscriptServer- the value for thescriptServerrecord componentstyle- the value for thestylerecord componentstyleScoped- the value for thestyleScopedrecord componentprops- the value for thepropsrecord 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. -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
scriptSetup
Returns the value of thescriptSetuprecord component.- Returns:
- the value of the
scriptSetuprecord component
-
scriptServer
Returns the value of thescriptServerrecord component.- Returns:
- the value of the
scriptServerrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
styleScoped
public boolean styleScoped()Returns the value of thestyleScopedrecord component.- Returns:
- the value of the
styleScopedrecord component
-
props
Returns the value of thepropsrecord component.- Returns:
- the value of the
propsrecord component
-