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
-
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. -
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
-
comments
-
startAtLine
public int startAtLine()Returns the value of thestartAtLinerecord component.- Returns:
- the value of the
startAtLinerecord component
-