public class NullValueImpl extends UndefinedValueImpl implements NullValue
IntegerValue.AccumulatorBagValue.AccumulatorOrderedSetValue.AccumulatorSequenceValue.AccumulatorSetValue.AccumulatorINVALID_NAME| Constructor and Description |
|---|
NullValueImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
asEcoreObject(IdResolver idResolver,
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() |
List<Object> |
asUnboxedObject(IdResolver idResolver)
Return the unboxed representation of this value.
|
boolean |
equals(Object obj) |
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() |
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, toSequenceValue, toString, unionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracegetObjectaddInteger, commutatedCompareToInteger, commutatedDiv, commutatedMod, divideInteger, divInteger, divUnlimited, maxInteger, minInteger, modInteger, modUnlimited, multiplyInteger, subtractIntegerabs, addReal, asNumber, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedDivide, commutatedMultiply, commutatedSubtract, divideReal, doubleValue, floor, isIntegerValue, max, maxReal, min, minReal, multiplyReal, round, signum, subtractRealisUnlimited, isUnlimitedNatural, max, maxUnlimited, min, minUnlimitedcommutatedCompareToReal, isUnlimitedNaturalValuecommutatedCompareToasBagValue, asCollectionValue, asDouble, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, isUndefined, toStringcompareTosubOrderedSetsubSequenceappend, appendAll, at, first, indexOf, insertAt, last, prepend, prependAll, reverseminus, symmetricDifferenceasCollection, 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, unionforEach, spliteratorgetValue, getValuepublic List<Object> asEcoreObject(IdResolver idResolver, Class<?> instanceClass)
ValueA thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, List<?> for collections
asEcoreObject in interface CollectionValueasEcoreObject in interface Valuepublic List<Object> asUnboxedObject(IdResolver idResolver)
ValueA 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 Valuepublic Type getType(StandardLibrary standardLibrary)
public OclVoidTypeId getTypeId()
ValuegetTypeId in interface CollectionValuegetTypeId in interface NullValuegetTypeId in interface TupleValuegetTypeId in interface ValuegetTypeId in class UndefinedValueImplpublic int intValue()
intValue in interface IntegerValueintValue in interface UnlimitedNaturalValuepublic boolean oclEquals(OCLValue thatValue)
OCLValueNote 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 OCLValueCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.