@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableOperatorMapping extends Object implements OperatorMapping
OperatorMapping.
Use the builder to create immutable instances:
ImmutableOperatorMapping.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOperatorMapping.Builder
Builds instances of type
ImmutableOperatorMapping. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableOperatorMapping.Builder |
builder()
Creates a builder for
ImmutableOperatorMapping. |
static ImmutableOperatorMapping |
copyOf(OperatorMapping instance)
Creates an immutable copy of a
OperatorMapping value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableOperatorMapping that have equal attribute values. |
String |
evaluatable()
name of evaluatable delegate
|
int |
hashCode()
Computes a hash code from attributes:
precedence, isLeftAssociative, evaluatable. |
boolean |
isLeftAssociative()
If operators with same precedence are evaluated from left to right.
|
int |
precedence() |
String |
toString()
Prints the immutable value
OperatorMapping with attribute values. |
ImmutableOperatorMapping |
withEvaluatable(String value)
Copy the current immutable object by setting a value for the
evaluatable attribute. |
ImmutableOperatorMapping |
withIsLeftAssociative(boolean value)
Copy the current immutable object by setting a value for the
isLeftAssociative attribute. |
ImmutableOperatorMapping |
withPrecedence(int value)
Copy the current immutable object by setting a value for the
precedence attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, of, ofpublic int precedence()
precedence in interface OperatorMappingpublic boolean isLeftAssociative()
isLeftAssociative in interface OperatorMappingpublic String evaluatable()
evaluatable in interface OperatorMappingpublic final ImmutableOperatorMapping withPrecedence(int value)
precedence attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for precedencethis objectpublic final ImmutableOperatorMapping withIsLeftAssociative(boolean value)
isLeftAssociative attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isLeftAssociativethis objectpublic final ImmutableOperatorMapping withEvaluatable(String value)
evaluatable attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for evaluatablethis objectpublic boolean equals(Object another)
ImmutableOperatorMapping that have equal attribute values.public int hashCode()
precedence, isLeftAssociative, evaluatable.public String toString()
OperatorMapping with attribute values.public static ImmutableOperatorMapping copyOf(OperatorMapping instance)
OperatorMapping 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 ImmutableOperatorMapping.Builder builder()
ImmutableOperatorMapping.
ImmutableOperatorMapping.builder()
.precedence(int) // required precedence
.isLeftAssociative(boolean) // required isLeftAssociative
.evaluatable(String) // required evaluatable
.build();
builder in interface OperatorMappingCopyright © 2024. All rights reserved.