JSXLexerConfigurationTypepublic final class JSXLexerConfiguration extends java.lang.Object implements JSXLexerConfigurationType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
JSXLexerConfiguration.Builder |
Builds instances of type
JSXLexerConfiguration. |
| Modifier and Type | Method | Description |
|---|---|---|
static JSXLexerConfiguration.Builder |
builder() |
Creates a builder for
JSXLexerConfiguration. |
java.util.EnumSet<JSXLexerComment> |
comments() |
|
static JSXLexerConfiguration |
copyOf(JSXLexerConfigurationType instance) |
Creates an immutable copy of a
JSXLexerConfigurationType value. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
JSXLexerConfiguration that have equal attribute values. |
java.util.Optional<java.nio.file.Path> |
file() |
|
int |
hashCode() |
Computes a hash code from attributes:
squareBrackets, newlinesInQuotedStrings, file, comments, startAtLine. |
boolean |
newlinesInQuotedStrings() |
|
static JSXLexerConfiguration |
of(boolean squareBrackets,
boolean newlinesInQuotedStrings,
java.util.Optional<? extends java.nio.file.Path> file,
java.util.EnumSet<JSXLexerComment> comments,
int startAtLine) |
Construct a new immutable
JSXLexerConfiguration instance. |
boolean |
squareBrackets() |
|
int |
startAtLine() |
|
java.lang.String |
toString() |
Prints the immutable value
JSXLexerConfiguration with attribute values. |
JSXLexerConfiguration |
withComments(java.util.EnumSet<JSXLexerComment> value) |
Copy the current immutable object by setting a value for the
comments attribute. |
JSXLexerConfiguration |
withFile(java.nio.file.Path value) |
Copy the current immutable object by setting a present value for the optional
file attribute. |
JSXLexerConfiguration |
withFile(java.util.Optional<? extends java.nio.file.Path> optional) |
Copy the current immutable object by setting an optional value for the
file attribute. |
JSXLexerConfiguration |
withNewlinesInQuotedStrings(boolean value) |
Copy the current immutable object by setting a value for the
newlinesInQuotedStrings attribute. |
JSXLexerConfiguration |
withSquareBrackets(boolean value) |
Copy the current immutable object by setting a value for the
squareBrackets attribute. |
JSXLexerConfiguration |
withStartAtLine(int value) |
Copy the current immutable object by setting a value for the
startAtLine attribute. |
public boolean squareBrackets()
squareBrackets in interface JSXLexerConfigurationTypetrue iff square brackets are allowed to denote listspublic boolean newlinesInQuotedStrings()
newlinesInQuotedStrings in interface JSXLexerConfigurationTypetrue iff newlines are allowed in quoted stringspublic java.util.Optional<java.nio.file.Path> file()
file in interface JSXLexerConfigurationTypepublic java.util.EnumSet<JSXLexerComment> comments()
comments in interface JSXLexerConfigurationTypepublic int startAtLine()
startAtLine in interface JSXLexerConfigurationTypepublic final JSXLexerConfiguration withSquareBrackets(boolean value)
squareBrackets attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for squareBracketsthis objectpublic final JSXLexerConfiguration withNewlinesInQuotedStrings(boolean value)
newlinesInQuotedStrings attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for newlinesInQuotedStringsthis objectpublic final JSXLexerConfiguration withFile(java.nio.file.Path value)
file attribute.value - The value for filethis objectpublic final JSXLexerConfiguration withFile(java.util.Optional<? extends java.nio.file.Path> optional)
file attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for filethis objectpublic final JSXLexerConfiguration withComments(java.util.EnumSet<JSXLexerComment> value)
comments attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for commentsthis objectpublic final JSXLexerConfiguration withStartAtLine(int value)
startAtLine attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for startAtLinethis objectpublic boolean equals(java.lang.Object another)
JSXLexerConfiguration that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
squareBrackets, newlinesInQuotedStrings, file, comments, startAtLine.hashCode in class java.lang.Objectpublic java.lang.String toString()
JSXLexerConfiguration with attribute values.toString in class java.lang.Objectpublic static JSXLexerConfiguration of(boolean squareBrackets, boolean newlinesInQuotedStrings, java.util.Optional<? extends java.nio.file.Path> file, java.util.EnumSet<JSXLexerComment> comments, int startAtLine)
JSXLexerConfiguration instance.squareBrackets - The value for the squareBrackets attributenewlinesInQuotedStrings - The value for the newlinesInQuotedStrings attributefile - The value for the file attributecomments - The value for the comments attributestartAtLine - The value for the startAtLine attributepublic static JSXLexerConfiguration copyOf(JSXLexerConfigurationType instance)
JSXLexerConfigurationType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static JSXLexerConfiguration.Builder builder()
JSXLexerConfiguration.Copyright © 2017 <code@io7m.com> http://io7m.com