public class ImmutableResultValue extends ResultValue
ResultValue
, Änderungen des einmal im Konstruktor gesetzten Wertes werden jedoch verhindert. UnsupportedOperationException
geworfen.ResultValue.ResultValueOperation
_children, _value, INVALID_ID
Constructor and Description |
---|
ImmutableResultValue(ExpressionResult expressionResult) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ResultValue> |
getChildren() |
ResultValue |
performOperation(ResultValue other,
ResultValue.ResultValueOperation operation)
Änderungen sind nicht erlaubt.
|
void |
set(ExpressionResult result)
Änderungen sind nicht erlaubt.
|
void |
truncChildren(int i)
Neue Wertzuweisungen sind nicht erlaubt.
|
cloneForAggregation, equals, getValue, hasData, hashCode, isAtomar, isSummable, toString
public ImmutableResultValue(ExpressionResult expressionResult)
expressionResult
- ExpressionResultResultValue.ResultValue(ExpressionResult)
public java.util.List<ResultValue> getChildren()
getChildren
in class ResultValue
public void truncChildren(int i)
truncChildren
in class ResultValue
i
- Länge.java.lang.UnsupportedOperationException
- Wird immer geworfen.public ResultValue performOperation(ResultValue other, ResultValue.ResultValueOperation operation)
performOperation
in class ResultValue
other
- Rechter Operand.operation
- Operation.this
java.lang.UnsupportedOperationException
- Wird immer geworfen.public void set(ExpressionResult result)
set
in class ResultValue
result
- Wert. throw new UnsupportedOperationException("Änderungen sind nicht erlaubt.");