public abstract class AbstractStandardLibrary extends java.lang.Object implements DomainStandardLibrary
Modifier | Constructor and Description |
---|---|
protected |
AbstractStandardLibrary() |
Modifier and Type | Method and Description |
---|---|
boolean |
conformsToCollectionType(DomainCollectionType firstCollectionType,
DomainCollectionType secondCollectionType) |
boolean |
conformsToLambdaType(DomainLambdaType firstLambdaType,
DomainLambdaType secondLambdaType) |
boolean |
conformsToTupleType(DomainTupleType firstTupleType,
DomainTupleType secondTupleType) |
void |
dispose() |
DomainCollectionType |
getBagType(DomainType elementType) |
DomainCollectionType |
getCollectionType(DomainType elementType) |
DomainCollectionType |
getCollectionType(DomainType containerType,
DomainType elementType,
IntegerValue lower,
IntegerValue upper)
Return the specialized collection type for the containerType for elementType.
|
DomainEnumeration |
getEnumeration(org.eclipse.emf.common.util.Enumerator enumerator)
Return the enumeration for a given enumerator.
|
DomainType |
getMetaType(DomainType instanceType)
Returns the meta-type of a given type.
|
DomainPackage |
getNestedPackage(DomainPackage parentPackage,
java.lang.String name) |
DomainType |
getNestedType(DomainPackage parentPackage,
java.lang.String name) |
DomainPackage |
getNsURIPackage(java.lang.String nsURI) |
DomainElement |
getOperationTemplateParameter(DomainOperation anOperation,
int index) |
DomainCollectionType |
getOrderedSetType(DomainType elementType) |
DomainType |
getPrimitiveType(PrimitiveTypeId typeId) |
DomainPackage |
getRootPackage(java.lang.String name) |
DomainCollectionType |
getSequenceType(DomainType elementType) |
DomainCollectionType |
getSetType(DomainType elementType) |
boolean |
isEqualToCollectionType(DomainCollectionType firstCollectionType,
DomainCollectionType secondCollectionType) |
boolean |
isEqualToTupleType(DomainTupleType firstTupleType,
DomainTupleType secondTupleType) |
protected <K,V> V |
weakGet(java.util.Map<K,java.lang.ref.WeakReference<V>> map,
K key)
Return the map.get(key).get() entry if there is one or null if not, removing any stale
entry that may be encountered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBagType, getBagType, getBooleanType, getCollectionType, getEnumerationType, getInheritance, getIntegerType, getMetaclass, getMetaclassType, getOclAnyType, getOclComparableType, getOclElementType, getOclInvalidType, getOclMessageType, getOclSelfType, getOclSummableType, getOclTupleType, getOclType, getOclVoidType, getOrderedSetType, getOrderedSetType, getRealType, getSequenceType, getSequenceType, getSetType, getSetType, getStringType, getUniqueCollectionType, getUnlimitedNaturalType
public boolean conformsToCollectionType(@NonNull DomainCollectionType firstCollectionType, @NonNull DomainCollectionType secondCollectionType)
conformsToCollectionType
in interface DomainStandardLibrary
public boolean conformsToLambdaType(@NonNull DomainLambdaType firstLambdaType, @NonNull DomainLambdaType secondLambdaType)
conformsToLambdaType
in interface DomainStandardLibrary
public boolean conformsToTupleType(@NonNull DomainTupleType firstTupleType, @NonNull DomainTupleType secondTupleType)
conformsToTupleType
in interface DomainStandardLibrary
public void dispose()
@NonNull public DomainCollectionType getBagType(@NonNull DomainType elementType)
@NonNull public DomainCollectionType getCollectionType(@NonNull DomainType elementType)
@NonNull public DomainCollectionType getCollectionType(@NonNull DomainType containerType, @NonNull DomainType elementType, @Nullable IntegerValue lower, @Nullable IntegerValue upper)
DomainStandardLibrary
getCollectionType
in interface DomainStandardLibrary
public DomainEnumeration getEnumeration(@NonNull org.eclipse.emf.common.util.Enumerator enumerator)
DomainStandardLibrary
getEnumeration
in interface DomainStandardLibrary
public DomainType getMetaType(@NonNull DomainType instanceType)
DomainStandardLibrary
getMetaType
in interface DomainStandardLibrary
@Nullable public DomainPackage getNestedPackage(@NonNull DomainPackage parentPackage, @NonNull java.lang.String name)
getNestedPackage
in interface DomainStandardLibrary
@Nullable public DomainType getNestedType(@NonNull DomainPackage parentPackage, @NonNull java.lang.String name)
getNestedType
in interface DomainStandardLibrary
@Nullable public DomainPackage getNsURIPackage(@NonNull java.lang.String nsURI)
getNsURIPackage
in interface DomainStandardLibrary
@Nullable public DomainElement getOperationTemplateParameter(@NonNull DomainOperation anOperation, int index)
getOperationTemplateParameter
in interface DomainStandardLibrary
@NonNull public DomainCollectionType getOrderedSetType(@NonNull DomainType elementType)
@Nullable public DomainType getPrimitiveType(@NonNull PrimitiveTypeId typeId)
getPrimitiveType
in interface DomainStandardLibrary
public DomainPackage getRootPackage(@NonNull java.lang.String name)
getRootPackage
in interface DomainStandardLibrary
@NonNull public DomainCollectionType getSequenceType(@NonNull DomainType elementType)
@NonNull public DomainCollectionType getSetType(@NonNull DomainType elementType)
public boolean isEqualToCollectionType(@NonNull DomainCollectionType firstCollectionType, @NonNull DomainCollectionType secondCollectionType)
isEqualToCollectionType
in interface DomainStandardLibrary
public boolean isEqualToTupleType(@NonNull DomainTupleType firstTupleType, @NonNull DomainTupleType secondTupleType)
isEqualToTupleType
in interface DomainStandardLibrary
protected <K,V> V weakGet(@NonNull java.util.Map<K,java.lang.ref.WeakReference<V>> map, @NonNull K key)