public abstract class ReflectiveType extends AbstractInheritance
AbstractInheritance.FragmentIterable, AbstractInheritance.RejectStaticOperation, AbstractInheritance.RejectStaticProperty, AbstractInheritance.SelectStaticOperation, AbstractInheritance.SelectStaticProperty
evaluationPackage, flags, name, operationMap, ORDERED, propertyMap, REJECT_STATIC_OPERATION, REJECT_STATIC_PROPERTY, SELECT_STATIC_OPERATION, SELECT_STATIC_PROPERTY, UNIQUE
EMPTY_ARRAY
Constructor and Description |
---|
ReflectiveType(java.lang.String name,
ExecutorPackage evaluationPackage,
int flags,
ExecutorTypeParameter... typeParameters) |
Modifier and Type | Method and Description |
---|---|
void |
addSubInheritance(ReflectiveType subInheritance) |
protected static int |
computeFlags(DomainType type) |
protected abstract AbstractFragment |
createFragment(DomainInheritance baseInheritance) |
java.lang.Object |
createInstance()
Return a new instance of this type from valueFactory.
|
java.lang.Object |
createInstance(java.lang.String value)
Return a new instance of this data type from valueFactory.
|
void |
dispose() |
boolean |
gatherUninstalledInheritances(java.util.List<ReflectiveType> inheritances)
Add this Inheritance and all un-installed super-Inheritances to inheritances, returning true if this
inheritance was already installed.
|
AbstractInheritance.FragmentIterable |
getAllSuperFragments()
Return a depth ordered, OclAny-first, OclSelf-last, Iterable of all the super-adapters including this one.
|
int |
getDepth()
Return the inheritance depth of the target type: OclAny is at depth 0.
|
DomainFragment |
getFragment(int fragmentNumber) |
protected DomainFragment[] |
getFragments() |
int |
getIndex(int fragmentNumber) |
int |
getIndexes() |
protected abstract java.lang.Iterable<? extends DomainInheritance> |
getInitialSuperInheritances()
Return the immediate superinheritances without reference to the fragments.
|
DomainFragment |
getSelfFragment() |
AbstractInheritance.FragmentIterable |
getSuperFragments(int depth)
Return an Iterable of all the super-inheritances at a specified depth, between 0 and getDepth() inclusive.
|
DomainType |
getType() |
TypeId |
getTypeId()
Return a unique StandardLibrary-independent identifier for this type.
|
protected void |
initialize() |
boolean |
install()
Install this Inheritance establishing its superClass tables and registering
it to be notified of any changes.
|
protected void |
installOclAny()
Install the root OclAny Inheritance.
|
boolean |
isInstallable()
Return true if this is installed or able to be installed.
|
boolean |
isInstalled()
Return true if this is installed.
|
void |
removeSubInheritance(ReflectiveType subInheritance) |
void |
uninstall() |
conformsTo, getCommonInheritance, getCommonType, getFragment, getInheritance, getMemberOperation, getName, getNormalizedType, getOclAnyInheritance, getOwnedInvariant, getOwnedRule, getPackage, initStatics, isEqualTo, isEqualToUnspecializedType, isInvalid, isOrdered, isSubInheritanceOf, isSuperInheritanceOf, isUndefined, isUnique, lookupImplementation, lookupLocalOperation, oclEquals, oclHashCode, specializeIn, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllOperations, getAllProperties, getMemberProperty, getStandardLibrary
getLocalOperations, getLocalProperties, getLocalSuperTypes, getMetaTypeName, getOwnedAttribute, getOwnedOperation, getTypeParameters
public ReflectiveType(@NonNull java.lang.String name, @NonNull ExecutorPackage evaluationPackage, int flags, ExecutorTypeParameter... typeParameters)
protected static int computeFlags(@NonNull DomainType type)
public void addSubInheritance(@NonNull ReflectiveType subInheritance)
protected abstract AbstractFragment createFragment(@NonNull DomainInheritance baseInheritance)
@NonNull public java.lang.Object createInstance()
DomainType
DomainProperty#initValue(DomainStandardLibrary, ObjectValue, Value)
provided no side-effect free
OCL functionality is permitted to use the ObjectValue until initialisation has completed.@Nullable public java.lang.Object createInstance(@NonNull java.lang.String value)
DomainType
value
- string initial valuepublic void dispose()
public boolean gatherUninstalledInheritances(@NonNull java.util.List<ReflectiveType> inheritances)
@NonNull public final AbstractInheritance.FragmentIterable getAllSuperFragments()
DomainInheritance
public final int getDepth()
DomainInheritance
public DomainFragment getFragment(int fragmentNumber)
@NonNull protected DomainFragment[] getFragments()
public int getIndex(int fragmentNumber)
public int getIndexes()
@NonNull protected abstract java.lang.Iterable<? extends DomainInheritance> getInitialSuperInheritances()
@NonNull public DomainFragment getSelfFragment()
@NonNull public final AbstractInheritance.FragmentIterable getSuperFragments(int depth)
DomainInheritance
@NonNull public DomainType getType()
@NonNull public TypeId getTypeId()
DomainType
protected void initialize()
public boolean install()
protected final void installOclAny()
public boolean isInstallable()
public boolean isInstalled()
public void removeSubInheritance(@NonNull ReflectiveType subInheritance)
public void uninstall()