Record Class VanParser.VanBlock

java.lang.Object
java.lang.Record
dev.vanengine.core.compile.VanParser.VanBlock
Enclosing class:
VanParser

public static record VanParser.VanBlock(String template, String scriptSetup, String scriptServer, String style, boolean styleScoped, List<VanParser.PropDef> props) extends Record
Extracted blocks from a .van file.
  • Constructor Details

    • VanBlock

      public VanBlock(String template, String scriptSetup, String scriptServer, String style, boolean styleScoped, List<VanParser.PropDef> props)
      Creates an instance of a VanBlock record class.
      Parameters:
      template - the value for the template record component
      scriptSetup - the value for the scriptSetup record component
      scriptServer - the value for the scriptServer record component
      style - the value for the style record component
      styleScoped - the value for the styleScoped record component
      props - the value for the props record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • template

      public String template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • scriptSetup

      public String scriptSetup()
      Returns the value of the scriptSetup record component.
      Returns:
      the value of the scriptSetup record component
    • scriptServer

      public String scriptServer()
      Returns the value of the scriptServer record component.
      Returns:
      the value of the scriptServer record component
    • style

      public String style()
      Returns the value of the style record component.
      Returns:
      the value of the style record component
    • styleScoped

      public boolean styleScoped()
      Returns the value of the styleScoped record component.
      Returns:
      the value of the styleScoped record component
    • props

      public List<VanParser.PropDef> props()
      Returns the value of the props record component.
      Returns:
      the value of the props record component