public abstract class UndefinedValueImpl extends EvaluationException implements NullValue
IntegerValue.Accumulator
BagValue.Accumulator
OrderedSetValue.Accumulator
SequenceValue.Accumulator
SetValue.Accumulator
INVALID_NAME
Constructor and Description |
---|
UndefinedValueImpl(String message) |
UndefinedValueImpl(String messageTemplate,
Object... bindings) |
UndefinedValueImpl(Throwable e,
String message) |
UndefinedValueImpl(Throwable e,
String messageTemplate,
Object... bindings) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
intValue
intValue
asEcoreObject, asElement, asUnboxedObject, isInvalid
oclEquals, oclHashCode
asEcoreObject
forEach, spliterator
public UndefinedValueImpl(String message)
public NullValue addInteger(IntegerValue right)
addInteger
in interface IntegerValue
addInteger
in interface RealValue
public OrderedCollectionValue append(Object object)
append
in interface OrderedCollectionValue
public OrderedCollectionValue appendAll(OrderedCollectionValue objects)
appendAll
in interface OrderedCollectionValue
public BagValue asBagValue()
asBagValue
in interface Value
public Collection<Object> asCollection()
asCollection
in interface CollectionValue
public CollectionValue asCollectionValue()
asCollectionValue
in interface Value
public <T> List<T> asEcoreObjects(IdResolver idResolver, Class<T> elementClass)
asEcoreObjects
in interface CollectionValue
public IntegerValue asIntegerValue()
asIntegerValue
in interface Value
public MapValue asMapValue()
asMapValue
in interface Value
public EObject asNavigableObject()
asNavigableObject
in interface Value
public ObjectValue asObjectValue()
asObjectValue
in interface Value
public OrderedCollectionValue asOrderedCollectionValue()
asOrderedCollectionValue
in interface Value
public OrderedSetValue asOrderedSetValue()
asOrderedSetValue
in interface Value
public RealValue asRealValue()
asRealValue
in interface Value
public SequenceValue asSequenceValue()
asSequenceValue
in interface Value
public SetValue asSetValue()
asSetValue
in interface Value
public TupleValue asTupleValue()
asTupleValue
in interface Value
public UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue
in interface Value
public UnlimitedNaturalValue asUnlimitedNaturalValue()
asUnlimitedNaturalValue
in interface Value
public Value at(int index)
at
in interface OrderedCollectionValue
public BigDecimal bigDecimalValue()
bigDecimalValue
in interface RealValue
public BigInteger bigIntegerValue()
bigIntegerValue
in interface RealValue
public RealValue commutatedAdd(RealValue left)
commutatedAdd
in interface RealValue
public IntegerValue commutatedDiv(IntegerValue left)
commutatedDiv
in interface IntegerValue
public RealValue commutatedDivide(RealValue left)
commutatedDivide
in interface RealValue
public IntegerValue commutatedMod(IntegerValue left)
commutatedMod
in interface IntegerValue
public RealValue commutatedMultiply(RealValue left)
commutatedMultiply
in interface RealValue
public RealValue commutatedSubtract(RealValue left)
commutatedSubtract
in interface RealValue
public int commutatedCompareTo(ComparableValue<?> left)
ComparableValue
This is an internal method used to give righthand argument an opportunity to coerce its tyope to suit the lefthand. It is invoked when a direct compareTo is unable to compare left with this. Derived implementations must not invoke comoareTo in order to avoid an infinite commutation.
commutatedCompareTo
in interface ComparableValue<NumberValue>
public int commutatedCompareToInteger(IntegerValue left)
commutatedCompareToInteger
in interface IntegerValue
commutatedCompareToInteger
in interface NumberValue
public int commutatedCompareToReal(RealValue left)
commutatedCompareToReal
in interface NumberValue
public int compareTo(NumberValue right)
compareTo
in interface Comparable<NumberValue>
public IntegerValue count(Object value)
count
in interface CollectionValue
public CollectionValue createNew()
public NullValue div(IntegerValue right)
public NullValue divInteger(IntegerValue right)
divInteger
in interface IntegerValue
public NullValue divUnlimited(UnlimitedValue right)
divUnlimited
in interface IntegerValue
public RealValue divideInteger(IntegerValue right)
divideInteger
in interface IntegerValue
divideInteger
in interface RealValue
public NullValue divideReal(RealValue right)
divideReal
in interface RealValue
public double doubleValue()
doubleValue
in interface RealValue
public Boolean excludes(Object value)
excludes
in interface CollectionValue
public Boolean excludesAll(CollectionValue c)
excludesAll
in interface CollectionValue
public CollectionValue excluding(Object value)
excluding
in interface CollectionValue
public CollectionValue excludingAll(CollectionValue c)
excludingAll
in interface CollectionValue
public Value first()
first
in interface OrderedCollectionValue
public CollectionValue flatten()
flatten
in interface CollectionValue
public boolean flatten(Collection<Object> flattenedElements)
flatten
in interface CollectionValue
public Type getElement()
public List<? extends Object> getElements()
getElements
in interface CollectionValue
public Type getInstanceType()
public String getKind()
getKind
in interface CollectionValue
public Object getObject()
getObject
in interface ObjectValue
public abstract OclVoidTypeId getTypeId()
Value
getTypeId
in interface CollectionValue
getTypeId
in interface NullValue
getTypeId
in interface TupleValue
getTypeId
in interface Value
public String getTypeName()
public Value getValue(TuplePartId partId)
TupleValue
getValue
in interface TupleValue
partId
- the tuple part (as an attribute)public Object getValue(int index)
TupleValue
getValue
in interface TupleValue
public Boolean includes(Object value)
includes
in interface CollectionValue
public Boolean includesAll(CollectionValue c)
includesAll
in interface CollectionValue
public CollectionValue including(Object value)
including
in interface CollectionValue
public CollectionValue includingAll(CollectionValue c)
includingAll
in interface CollectionValue
public IntegerValue indexOf(Object object)
indexOf
in interface OrderedCollectionValue
public SequenceValue insertAt(int index, Object object)
insertAt
in interface OrderedCollectionValue
public int intSize()
intSize
in interface CollectionValue
public CollectionValue intersection(CollectionValue c)
intersection
in interface CollectionValue
public Boolean isEmpty()
isEmpty
in interface CollectionValue
public boolean isFalse()
public IntegerValue isIntegerValue()
isIntegerValue
in interface RealValue
public boolean isOrdered()
isOrdered
in interface CollectionValue
public boolean isTrue()
public boolean isUndefined()
isUndefined
in interface Value
public boolean isUnique()
isUnique
in interface CollectionValue
public boolean isUnlimited()
isUnlimited
in interface UnlimitedNaturalValue
public boolean isUnlimitedNatural()
isUnlimitedNatural
in interface UnlimitedNaturalValue
public UnlimitedNaturalValue isUnlimitedNaturalValue()
isUnlimitedNaturalValue
in interface NumberValue
public Iterable<? extends Object> iterable()
iterable
in interface CollectionValue
public org.eclipse.ocl.pivot.internal.values.UndefinedValueImpl.Iterator iterator()
iterator
in interface Iterable<Object>
iterator
in interface CollectionValue
public Value last()
last
in interface OrderedCollectionValue
public NullValue max(UnlimitedNaturalValue right)
max
in interface UnlimitedNaturalValue
public NullValue maxInteger(IntegerValue right)
maxInteger
in interface IntegerValue
maxInteger
in interface RealValue
public NullValue maxUnlimited(UnlimitedNaturalValue right)
maxUnlimited
in interface UnlimitedNaturalValue
public NullValue min(UnlimitedNaturalValue right)
min
in interface UnlimitedNaturalValue
public NullValue minInteger(IntegerValue right)
minInteger
in interface IntegerValue
minInteger
in interface RealValue
public NullValue minUnlimited(UnlimitedNaturalValue right)
minUnlimited
in interface UnlimitedNaturalValue
public NullValue minus(UniqueCollectionValue set)
minus
in interface UniqueCollectionValue
public NullValue modInteger(IntegerValue right)
modInteger
in interface IntegerValue
public NullValue modUnlimited(UnlimitedValue right)
modUnlimited
in interface IntegerValue
public NullValue multiplyInteger(IntegerValue right)
multiplyInteger
in interface IntegerValue
multiplyInteger
in interface RealValue
public NullValue multiplyReal(RealValue right)
multiplyReal
in interface RealValue
public NullValue negate()
public Boolean notEmpty()
notEmpty
in interface CollectionValue
public OrderedCollectionValue prepend(Object object)
prepend
in interface OrderedCollectionValue
public OrderedCollectionValue prependAll(OrderedCollectionValue objects)
prependAll
in interface OrderedCollectionValue
public Set<TupleValue> product(CollectionValue c, TupleTypeId tupleTypeId)
product
in interface CollectionValue
public OrderedCollectionValue reverse()
reverse
in interface OrderedCollectionValue
public IntegerValue size()
size
in interface CollectionValue
public SequenceValue sort(Comparator<Object> comparator)
sort
in interface CollectionValue
public String stringValue()
public NullValue subOrderedSet(int lower, int upper)
subOrderedSet
in interface OrderedSetValue
public NullValue subSequence(int lower, int upper)
subSequence
in interface SequenceValue
public NullValue subtractInteger(IntegerValue right)
subtractInteger
in interface IntegerValue
subtractInteger
in interface RealValue
public NullValue subtractReal(RealValue right)
subtractReal
in interface RealValue
public NullValue symmetricDifference(UniqueCollectionValue set)
symmetricDifference
in interface UniqueCollectionValue
public SequenceValue toSequenceValue()
toSequenceValue
in interface CollectionValue
public void toString(StringBuilder s, int sizeLimit)
public CollectionValue union(CollectionValue c)
union
in interface CollectionValue
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.