public abstract class AbstractOperation extends AbstractFeature implements LibraryOperation.LibraryOperationExtension2
#evaluate(Executor, OperationCallExp, Object[])
offers the maximum polymorphism
with source and arguments packed to facilitate cache lookup.
For code generated purposes the many Unary/Binary/Ternary derived classes offer significantly simpler signatures
suitable for direct invocation from auto-generated Java code.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 |
---|
AbstractOperation() |
Modifier and Type | Method and Description |
---|---|
Object |
basicEvaluate(Executor executor,
TypedElement caller,
Object[] sourceAndArgumentValues)
Return the evaluation from sourceAndArgumentValues using the executor for context wrt a caller.
|
Object |
dispatch(Evaluator evaluator,
OperationCallExp callExp,
Object sourceValue)
Deprecated.
use Executor
|
Object |
evaluate(Executor executor,
TypedElement caller,
Object[] sourceAndArgumentValues)
Return the evaluation from sourceAndArgumentValues using the executor for context wrt a caller.
|
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispatch
@Deprecated public Object dispatch(Evaluator evaluator, OperationCallExp callExp, Object sourceValue)
dispatch
in interface LibraryOperation
public Object basicEvaluate(Executor executor, TypedElement caller, Object[] sourceAndArgumentValues)
basicEvaluate
in interface LibraryOperation.LibraryOperationExtension2
public Object evaluate(Executor executor, TypedElement caller, Object[] sourceAndArgumentValues)
evaluate
in interface LibraryOperation.LibraryOperationExtension2
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.