public abstract class NumberValueImpl extends java.lang.Number implements NumberValue
INVALID_NAME
Modifier | Constructor and Description |
---|---|
protected |
NumberValueImpl() |
Modifier and Type | Method and Description |
---|---|
BagValue |
asBagValue() |
CollectionValue |
asCollectionValue() |
java.lang.Double |
asDouble() |
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.lang.Integer |
asInteger() |
IntegerValue |
asIntegerValue() |
MapValue |
asMapValue() |
org.eclipse.emf.ecore.EObject |
asNavigableObject() |
ObjectValue |
asObjectValue() |
OrderedCollectionValue |
asOrderedCollectionValue() |
OrderedSetValue |
asOrderedSetValue() |
RealValue |
asRealValue() |
SequenceValue |
asSequenceValue() |
SetValue |
asSetValue() |
TupleValue |
asTupleValue() |
UniqueCollectionValue |
asUniqueCollectionValue() |
UnlimitedNaturalValue |
asUnlimitedNaturalValue() |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
java.lang.String |
getTypeName() |
boolean |
isInvalid() |
boolean |
isUndefined() |
boolean |
oclEquals(OCLValue thatValue)
Return true if this is an equivalent OCL value to thatValue.
|
int |
oclHashCode() |
void |
toString(java.lang.StringBuilder s,
int sizeLimit) |
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commutatedCompareToInteger, commutatedCompareToReal, isUnlimitedNaturalValue
commutatedCompareTo
asObject, asUnboxedObject, getTypeId
protected org.eclipse.emf.ecore.EClass eStaticClass()
@NonNull public BagValue asBagValue()
asBagValue
in interface Value
@NonNull public CollectionValue asCollectionValue()
asCollectionValue
in interface Value
public 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 Value
@NonNull public IntegerValue asIntegerValue()
asIntegerValue
in interface Value
@NonNull public MapValue asMapValue()
asMapValue
in interface Value
@NonNull public org.eclipse.emf.ecore.EObject asNavigableObject()
asNavigableObject
in interface Value
@NonNull public ObjectValue asObjectValue()
asObjectValue
in interface Value
@NonNull public OrderedCollectionValue asOrderedCollectionValue()
asOrderedCollectionValue
in interface Value
@NonNull public OrderedSetValue asOrderedSetValue()
asOrderedSetValue
in interface Value
@NonNull public RealValue asRealValue()
asRealValue
in interface Value
@NonNull public SequenceValue asSequenceValue()
asSequenceValue
in interface Value
@NonNull public SetValue asSetValue()
asSetValue
in interface Value
@NonNull public TupleValue asTupleValue()
asTupleValue
in interface Value
@NonNull public UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue
in interface Value
@NonNull public UnlimitedNaturalValue asUnlimitedNaturalValue()
asUnlimitedNaturalValue
in interface Value
@NonNull public java.lang.String getTypeName()
public boolean isUndefined()
isUndefined
in interface Value
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