JSXLexerConfigurationTypepublic final class JSXLexerConfiguration extends 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. |
EnumSet<JSXLexerComment> |
comments() |
|
static JSXLexerConfiguration |
copyOf(JSXLexerConfigurationType instance) |
Creates an immutable copy of a
JSXLexerConfigurationType value. |
boolean |
equals(Object another) |
This instance is equal to all instances of
JSXLexerConfiguration that have equal attribute values. |
Optional<URI> |
file() |
|
int |
hashCode() |
Computes a hash code from attributes:
squareBrackets, newlinesInQuotedStrings, file, comments, startAtLine. |
boolean |
newlinesInQuotedStrings() |
|
static JSXLexerConfiguration |
of(boolean squareBrackets,
boolean newlinesInQuotedStrings,
Optional<? extends URI> file,
EnumSet<JSXLexerComment> comments,
int startAtLine) |
Construct a new immutable
JSXLexerConfiguration instance. |
boolean |
squareBrackets() |
|
int |
startAtLine() |
|
String |
toString() |
Prints the immutable value
JSXLexerConfiguration with attribute values. |
JSXLexerConfiguration |
withComments(EnumSet<JSXLexerComment> value) |
Copy the current immutable object by setting a value for the
comments attribute. |
JSXLexerConfiguration |
withFile(URI value) |
Copy the current immutable object by setting a present value for the optional
file attribute. |
JSXLexerConfiguration |
withFile(Optional<? extends URI> 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 Optional<URI> file()
file in interface JSXLexerConfigurationTypepublic 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(URI value)
file attribute.value - The value for filethis objectpublic final JSXLexerConfiguration withFile(Optional<? extends URI> 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(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(Object another)
JSXLexerConfiguration that have equal attribute values.public int hashCode()
squareBrackets, newlinesInQuotedStrings, file, comments, startAtLine.public String toString()
JSXLexerConfiguration with attribute values.public static JSXLexerConfiguration of(boolean squareBrackets, boolean newlinesInQuotedStrings, Optional<? extends URI> file, 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