Package com.io7m.jsx.api.lexer
Record Class JSXLexerConfiguration
java.lang.Object
java.lang.Record
com.io7m.jsx.api.lexer.JSXLexerConfiguration
- Record Components:
squareBrackets-trueiff square brackets are allowed to denote listsnewlinesInQuotedStrings-trueiff newlines are allowed in quoted stringsfile- The URI that will be used in lexical information, if anycomments- The string(s) used to start line commentsstartAtLine- The starting line number (for lexical information)
public record JSXLexerConfiguration(boolean squareBrackets, boolean newlinesInQuotedStrings, Optional<URI> file, EnumSet<JSXLexerComment> comments, int startAtLine)
extends Record
The type of lexer configurations.
-
Constructor Summary
ConstructorsConstructorDescriptionJSXLexerConfiguration(boolean squareBrackets, boolean newlinesInQuotedStrings, Optional<URI> file, EnumSet<JSXLexerComment> comments, int startAtLine) The type of lexer configurations. -
Method Summary
Modifier and TypeMethodDescriptioncomments()Returns the value of thecommentsrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenewlinesInQuotedStringsrecord component.booleanReturns the value of thesquareBracketsrecord component.intReturns the value of thestartAtLinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JSXLexerConfiguration
public JSXLexerConfiguration(boolean squareBrackets, boolean newlinesInQuotedStrings, Optional<URI> file, EnumSet<JSXLexerComment> comments, int startAtLine) The type of lexer configurations.- Parameters:
squareBrackets-trueiff square brackets are allowed to denote listsnewlinesInQuotedStrings-trueiff newlines are allowed in quoted stringsfile- The URI that will be used in lexical information, if anycomments- The string(s) used to start line commentsstartAtLine- The starting line number (for lexical information)
-
-
Method Details
-
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. -
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. -
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 '=='. -
squareBrackets
public boolean squareBrackets()Returns the value of thesquareBracketsrecord component.- Returns:
- the value of the
squareBracketsrecord component
-
newlinesInQuotedStrings
public boolean newlinesInQuotedStrings()Returns the value of thenewlinesInQuotedStringsrecord component.- Returns:
- the value of the
newlinesInQuotedStringsrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
comments
Returns the value of thecommentsrecord component.- Returns:
- the value of the
commentsrecord component
-
startAtLine
public int startAtLine()Returns the value of thestartAtLinerecord component.- Returns:
- the value of the
startAtLinerecord component
-