public class AbstractMetaclass extends AbstractSpecializedType implements DomainMetaclass
Modifier and Type | Field and Description |
---|---|
protected DomainType |
instanceType |
protected TypeId |
typeId |
containerType
name, standardLibrary
Constructor and Description |
---|
AbstractMetaclass(DomainStandardLibrary standardLibrary,
DomainType instanceType) |
Modifier and Type | Method and Description |
---|---|
boolean |
conformsTo(DomainStandardLibrary standardLibrary,
DomainType type)
Return true if this type conform to thatType within standardLibrary.
|
boolean |
equals(java.lang.Object obj) |
DomainType |
getCommonType(IdResolver idResolver,
DomainType type)
Return the most derived type com mon to this type and thatType within standardLibrary.
|
DomainType |
getInstanceType() |
protected DomainType |
getMetaType() |
protected DomainType |
getNormalizedInstanceType() |
TypeId |
getTypeId()
Return a unique StandardLibrary-independent identifier for this type.
|
int |
hashCode() |
boolean |
isEqualTo(DomainStandardLibrary standardLibrary,
DomainType type)
Return true if this is the same type as thatType within standardLibrary.
|
java.lang.String |
toString() |
getContainerType, isOrdered, isUnique, lookupImplementation
createInstance, createInstance, getInheritance, getLocalOperations, getLocalProperties, getLocalSuperTypes, getMetaTypeName, getName, getNormalizedType, getOwnedAttribute, getOwnedInvariant, getOwnedOperation, getOwnedRule, getPackage, getStandardLibrary, getTypeParameters, isEqualToUnspecializedType, isInvalid, oclEquals, oclHashCode, specializeIn
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContainerType
createInstance, createInstance, getInheritance, getLocalOperations, getLocalProperties, getLocalSuperTypes, getMetaTypeName, getName, getNormalizedType, getOwnedAttribute, getOwnedInvariant, getOwnedOperation, getPackage, getTypeParameters, isEqualToUnspecializedType, isInvalid, isOrdered, isUnique, lookupImplementation, specializeIn
getOwnedRule
oclEquals, oclHashCode
@NonNull protected final DomainType instanceType
@NonNull protected final TypeId typeId
public AbstractMetaclass(@NonNull DomainStandardLibrary standardLibrary, @NonNull DomainType instanceType)
public boolean conformsTo(@NonNull DomainStandardLibrary standardLibrary, @NonNull DomainType type)
DomainType
conformsTo
in interface DomainType
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@NonNull public DomainType getCommonType(@NonNull IdResolver idResolver, @NonNull DomainType type)
DomainType
getCommonType
in interface DomainType
getCommonType
in class AbstractType
public DomainType getInstanceType()
getInstanceType
in interface DomainMetaclass
@Nullable protected DomainType getMetaType()
@NonNull protected DomainType getNormalizedInstanceType()
@NonNull public TypeId getTypeId()
DomainType
getTypeId
in interface DomainType
public int hashCode()
hashCode
in class java.lang.Object
public boolean isEqualTo(@NonNull DomainStandardLibrary standardLibrary, @NonNull DomainType type)
DomainType
isEqualTo
in interface DomainType
public java.lang.String toString()
toString
in class java.lang.Object