Record Class XSFormatItemBlock
java.lang.Object
java.lang.Record
com.io7m.xstructural.vanilla.internal.format.XSFormatItemBlock
- Record Components:
spaceBefore- Whether there was whitespace before this element in the sourcenode- The block node
- All Implemented Interfaces:
XSFormatItemType
public record XSFormatItemBlock(boolean spaceBefore, XSFormatNodeType node)
extends Record
implements XSFormatItemType
A nested block element reference within mixed content.
-
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.node()Returns the value of thenoderecord component.booleanReturns the value of thespaceBeforerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
XSFormatItemBlock
Constructor.
-
-
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. -
spaceBefore
public boolean spaceBefore()Returns the value of thespaceBeforerecord component.- Specified by:
spaceBeforein interfaceXSFormatItemType- Returns:
- the value of the
spaceBeforerecord component
-
node
-