public class NullValueImpl extends UndefinedValueImpl implements NullValue
IntegerValue.Accumulator
BagValue.Accumulator
OrderedSetValue.Accumulator
SequenceValue.Accumulator
SetValue.Accumulator
INVALID_NAME
Constructor and Description |
---|
NullValueImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
asEcoreObject(IdResolver idResolver,
java.lang.Class<?> instanceClass)
Return the Ecore representation of this value, which should be fully compatible with the Ecore return
from a similarly typed eGet().
|
Element |
asElement() |
java.util.List<java.lang.Object> |
asUnboxedObject(IdResolver idResolver)
Return the unboxed representation of this value.
|
boolean |
equals(java.lang.Object obj) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
Type |
getType(StandardLibrary standardLibrary) |
OclVoidTypeId |
getTypeId()
Return the type of this value determined from its construction context.
|
int |
hashCode() |
int |
intValue() |
boolean |
isInvalid() |
boolean |
oclEquals(OCLValue thatValue)
Return true if this is an equivalent OCL value to thatValue.
|
int |
oclHashCode() |
java.lang.String |
toString() |
abs, addInteger, addReal, append, appendAll, asBagValue, asCollection, asCollectionValue, asDouble, asEcoreObjects, asInteger, asIntegerValue, asList, asMapValue, asNavigableObject, asNumber, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, at, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedCompareTo, commutatedCompareToInteger, commutatedCompareToReal, commutatedDiv, commutatedDivide, commutatedMod, commutatedMultiply, commutatedSubtract, compareTo, count, createNew, div, divideInteger, divideReal, divInteger, divUnlimited, doubleValue, excludes, excludesAll, excluding, excludingAll, first, flatten, flatten, floor, getElement, getElements, getInstanceType, getKind, getObject, getTypeName, getValue, getValue, includes, includesAll, including, includingAll, indexOf, insertAt, intersection, intSize, isEmpty, isFalse, isIntegerValue, isOrdered, isTrue, isUndefined, isUnique, isUnlimited, isUnlimitedNatural, isUnlimitedNaturalValue, iterable, iterator, last, max, max, maxInteger, maxReal, maxUnlimited, min, min, minInteger, minReal, minUnlimited, minus, modInteger, modUnlimited, multiplyInteger, multiplyReal, negate, notEmpty, prepend, prependAll, product, reverse, round, signum, size, sort, stringValue, subOrderedSet, subSequence, subtractInteger, subtractReal, symmetricDifference, toInvalidValue, toSequenceValue, toString, union
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getObject
addInteger, commutatedCompareToInteger, commutatedDiv, commutatedMod, divideInteger, divInteger, divUnlimited, maxInteger, minInteger, modInteger, modUnlimited, multiplyInteger, subtractInteger
abs, addReal, asNumber, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedDivide, commutatedMultiply, commutatedSubtract, divideReal, doubleValue, floor, isIntegerValue, max, maxReal, min, minReal, multiplyReal, round, signum, subtractReal
isUnlimited, isUnlimitedNatural, max, maxUnlimited, min, minUnlimited
commutatedCompareToReal, isUnlimitedNaturalValue
commutatedCompareTo
asBagValue, asCollectionValue, asDouble, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, isUndefined, toString
subOrderedSet
subSequence
append, appendAll, at, first, indexOf, insertAt, last, prepend, prependAll, reverse
minus, symmetricDifference
asCollection, asEcoreObjects, count, excludes, excludesAll, excluding, excludingAll, flatten, flatten, getElements, getKind, includes, includesAll, including, includingAll, intersection, intSize, isEmpty, isOrdered, isUnique, iterable, iterator, notEmpty, product, size, sort, toSequenceValue, union
getValue, getValue
protected org.eclipse.emf.ecore.EClass eStaticClass()
public java.util.List<java.lang.Object> asEcoreObject(@NonNull IdResolver idResolver, @Nullable java.lang.Class<?> instanceClass)
Value
A thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, List> for collections
asEcoreObject
in interface CollectionValue
asEcoreObject
in interface Value
public java.util.List<java.lang.Object> asUnboxedObject(@NonNull IdResolver idResolver)
Value
A thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, Bag/Set/OrderedSet/List for collections
asUnboxedObject
in interface Value
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@NonNull public Type getType(@NonNull StandardLibrary standardLibrary)
@NonNull public OclVoidTypeId getTypeId()
Value
getTypeId
in interface CollectionValue
getTypeId
in interface NullValue
getTypeId
in interface TupleValue
getTypeId
in interface Value
getTypeId
in class UndefinedValueImpl
public int hashCode()
hashCode
in class java.lang.Object
public int intValue()
intValue
in interface IntegerValue
intValue
in interface UnlimitedNaturalValue
public boolean oclEquals(@NonNull OCLValue thatValue)
OCLValue
Note that the caller must check that the argument is an OCLValue and should also check for the shortcut case that this == thatValue. Implementations are therefore wasting time if they re-implement the shortcut.
public int oclHashCode()
oclHashCode
in interface OCLValue
public java.lang.String toString()
toString
in class java.lang.Throwable