|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.domain.types.AbstractInheritance
org.eclipse.ocl.examples.library.executor.ReflectiveType
public abstract class ReflectiveType
A ReflectiveType defines a Type using a compact representation suitable for efficient execution. The representation is derived reflectively from a less efficient representation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.ocl.examples.domain.types.AbstractInheritance |
---|
AbstractInheritance.FragmentIterable |
Field Summary |
---|
Fields inherited from class org.eclipse.ocl.examples.domain.types.AbstractInheritance |
---|
evaluationPackage, flags, name, operationMap, ORDERED, propertyMap, UNIQUE |
Fields inherited from interface org.eclipse.ocl.examples.domain.elements.DomainInheritance |
---|
EMPTY_ARRAY |
Constructor Summary | |
---|---|
ReflectiveType(java.lang.String name,
ExecutorPackage evaluationPackage,
int flags,
ExecutorTypeParameter... typeParameters)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.eclipse.ocl.examples.domain.types.AbstractInheritance |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.domain.elements.DomainInheritance |
---|
getAllOperations, getAllProperties, getMemberProperty, getStandardLibrary |
Methods inherited from interface org.eclipse.ocl.examples.domain.elements.DomainType |
---|
getLocalOperations, getLocalProperties, getLocalSuperTypes, getMetaTypeName, getOwnedAttribute, getOwnedOperation, getTypeParameters |
Constructor Detail |
---|
public ReflectiveType(@NonNull java.lang.String name, @NonNull ExecutorPackage evaluationPackage, int flags, ExecutorTypeParameter... typeParameters)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |