public abstract class AbstractSimpleUnaryOperation extends AbstractUntypedUnaryOperation implements LibrarySimpleUnaryOperation.LibrarySimpleUnaryOperationExtension
LibrarySimpleUnaryOperation.LibrarySimpleUnaryOperationExtension
LibraryUntypedUnaryOperation.LibraryUntypedUnaryOperationExtension
LibraryUnaryOperation.LibraryUnaryOperationExtension
LibraryOperation.LibraryOperationExtension, LibraryOperation.LibraryOperationExtension2
EMPTY_BAG, EMPTY_SET, FALSE_VALUE, INTEGER_MAX_VALUE, INTEGER_MIN_VALUE, INVALID_VALUE, LONG_MAX_VALUE, LONG_MIN_VALUE, NULL_STRING, NULL_VALUE, ONE_VALUE, TRUE_VALUE, UNLIMITED_ONE_VALUE, UNLIMITED_VALUE, ZERO_VALUE
Constructor and Description |
---|
AbstractSimpleUnaryOperation() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
dispatch(Evaluator evaluator,
OperationCallExp callExp,
java.lang.Object sourceValue)
Deprecated.
use Executor
|
java.lang.Object |
dispatch(Executor executor,
OperationCallExp callExp,
java.lang.Object sourceValue)
Return the result of evaluating callExp and its arguments upon sourceValue within the environment
provided by evaluator.
|
java.lang.Object |
evaluate(Evaluator evaluator,
java.lang.Object sourceValue)
Deprecated.
use Executor
|
java.lang.Object |
evaluate(Evaluator evaluator,
TypeId returnTypeId,
java.lang.Object sourceValue)
Deprecated.
use Executor
|
java.lang.Object |
evaluate(Executor executor,
java.lang.Object sourceValue) |
java.lang.Object |
evaluate(Executor executor,
TypedElement caller,
java.lang.Object[] boxedSourceAndArgumentValues)
Return the evaluation from sourceAndArgumentValues using the executor for context wrt a caller.
|
java.lang.Object |
evaluate(Executor executor,
TypeId returnTypeId,
java.lang.Object sourceValue)
Return the result of evaluating the operation on an argument.
|
abstract java.lang.Object |
evaluate(java.lang.Object sourceValue) |
basicEvaluate, cachedEvaluate
asBagValue, asBoolean, asClass, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asMapType, asMapValue, asNavigableObject, asNavigableObject, asObject, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, bigDecimalValueOf, bigIntegerValueOf, byteValueOf, characterValueOf, computeCollectionHashCode, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createMapEntry, createMapOfEach, createMapValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, doubleValueOf, floatValueOf, getElementIdName, getExecutor, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, intValueOf, isBoxed, isCollectionValue, isEcore, isIntegerNumber, isIntegerValue, isRealNumber, isUnboxed, isUnlimited, longValueOf, numberValueOf, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, shortValueOf, stringValueOf, throwBooleanInvalidValueException, throwInvalidValueException, throwUnsupportedCompareTo, toString, typedIterable, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf
@Deprecated @Nullable public java.lang.Object dispatch(@NonNull Evaluator evaluator, @NonNull OperationCallExp callExp, @Nullable java.lang.Object sourceValue)
dispatch
in interface LibraryOperation
dispatch
in class AbstractUntypedUnaryOperation
@Nullable public java.lang.Object dispatch(@NonNull Executor executor, @NonNull OperationCallExp callExp, @Nullable java.lang.Object sourceValue)
LibraryOperation.LibraryOperationExtension
This invocation evaluates the arguments as required. Derived implementations may implement short circuit processing to skip redundant evaluation of later arguments.
Invocations may bypass dispatch if a derived LibraryOperation such as LibrarySimpleBinaryOperation makes its internal evaluate signature available for use after a type test and cast.
dispatch
in interface LibraryOperation.LibraryOperationExtension
dispatch
in class AbstractUnaryOperation
@Deprecated @Nullable public java.lang.Object evaluate(@NonNull Evaluator evaluator, @NonNull TypeId returnTypeId, @Nullable java.lang.Object sourceValue)
evaluate
in interface LibraryUnaryOperation
evaluate
in class AbstractUntypedUnaryOperation
@Nullable public java.lang.Object evaluate(@NonNull Executor executor, @NonNull TypeId returnTypeId, @Nullable java.lang.Object sourceValue)
LibraryUnaryOperation.LibraryUnaryOperationExtension
evaluate
in interface LibraryUnaryOperation.LibraryUnaryOperationExtension
evaluate
in class AbstractUntypedUnaryOperation
@Deprecated @Nullable public java.lang.Object evaluate(@NonNull Evaluator evaluator, @Nullable java.lang.Object sourceValue)
evaluate
in interface LibraryUntypedUnaryOperation
evaluate
in class AbstractUntypedUnaryOperation
@Nullable public java.lang.Object evaluate(@NonNull Executor executor, @Nullable java.lang.Object sourceValue)
evaluate
in interface LibraryUntypedUnaryOperation.LibraryUntypedUnaryOperationExtension
@Nullable public java.lang.Object evaluate(@NonNull Executor executor, @NonNull TypedElement caller, @Nullable java.lang.Object[] boxedSourceAndArgumentValues)
AbstractOperation
evaluate
in interface LibraryOperation.LibraryOperationExtension2
evaluate
in class AbstractUntypedUnaryOperation
@Nullable public abstract java.lang.Object evaluate(@Nullable java.lang.Object sourceValue)
evaluate
in interface LibrarySimpleUnaryOperation