public class ClassImpl extends TypeImpl implements Class
The following features are implemented:
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.common.util.EList<StereotypeExtender> |
extenders
The cached value of the '
Extenders ' reference list. |
protected static java.lang.String |
INSTANCE_CLASS_NAME_EDEFAULT
The default value of the '
Instance Class Name ' attribute. |
protected java.lang.String |
instanceClassName
The cached value of the '
Instance Class Name ' attribute. |
protected static boolean |
IS_ABSTRACT_EDEFAULT
The default value of the '
Is Abstract ' attribute. |
protected static int |
IS_ABSTRACT_EFLAG
The flag representing the value of the '
Is Abstract ' attribute. |
protected static boolean |
IS_ACTIVE_EDEFAULT
The default value of the '
Is Active ' attribute. |
protected static int |
IS_ACTIVE_EFLAG
The flag representing the value of the '
Is Active ' attribute. |
protected static boolean |
IS_INTERFACE_EDEFAULT
The default value of the '
Is Interface ' attribute. |
protected static int |
IS_INTERFACE_EFLAG
The flag representing the value of the '
Is Interface ' attribute. |
protected org.eclipse.emf.common.util.EList<Behavior> |
ownedBehaviors
The cached value of the '
Owned Behaviors ' containment reference list. |
protected org.eclipse.emf.common.util.EList<TemplateBinding> |
ownedBindings
The cached value of the '
Owned Bindings ' containment reference list. |
protected org.eclipse.emf.common.util.EList<Constraint> |
ownedConstraints
The cached value of the '
Owned Constraints ' containment reference list. |
protected org.eclipse.emf.common.util.EList<Constraint> |
ownedInvariants
The cached value of the '
Owned Invariants ' containment reference list. |
protected org.eclipse.emf.common.util.EList<Operation> |
ownedOperations
The cached value of the '
Owned Operations ' containment reference list. |
protected org.eclipse.emf.common.util.EList<Property> |
ownedProperties
The cached value of the '
Owned Properties ' containment reference list. |
protected TemplateSignature |
ownedSignature
The cached value of the '
Owned Signature ' containment reference. |
protected org.eclipse.emf.common.util.EList<Class> |
superClasses
The cached value of the '
Super Classes ' reference list. |
protected TemplateableElement |
unspecializedElement
The cached value of the '
Unspecialized Element ' reference. |
name, NAME_EDEFAULT
annotatingComments, ownedAnnotations, ownedComments, ownedExtensions
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
Modifier | Constructor and Description |
---|---|
protected |
ClassImpl() |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(Visitor<R> visitor)
Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.
|
void |
addClassListener(ClassListeners.IClassListener classListener) |
org.eclipse.emf.common.notify.NotificationChain |
basicSetOwnedSignature(TemplateSignature newOwnedSignature,
org.eclipse.emf.common.notify.NotificationChain msgs) |
org.eclipse.emf.common.notify.NotificationChain |
basicSetOwningPackage(Package newOwningPackage,
org.eclipse.emf.common.notify.NotificationChain msgs) |
TypeId |
computeId() |
boolean |
conformsTo(StandardLibrary standardLibrary,
Type type)
Return true if this type conform to thatType within standardLibrary.
|
int |
eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass) |
org.eclipse.emf.common.notify.NotificationChain |
eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs) |
int |
eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
java.lang.Object |
eInvoke(int operationID,
org.eclipse.emf.common.util.EList<?> arguments) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
void |
eUnset(int featureID) |
Type |
getCommonType(IdResolver idResolver,
Type type)
Return the most derived type common to this type and thatType within standardLibrary.
|
java.util.List<StereotypeExtender> |
getExtenders() |
CompleteInheritance |
getInheritance(StandardLibrary standardLibrary)
Return the inheritance description for this type within standardLibrary.
|
java.lang.String |
getInstanceClassName() |
java.lang.String |
getMetaTypeName()
Return the name of the meta-type of this type.
|
Class |
getNormalizedType(StandardLibrary standardLibrary)
Return the unique executable form of this type within standardLibrary.
|
java.util.List<Behavior> |
getOwnedBehaviors() |
java.util.List<TemplateBinding> |
getOwnedBindings() |
java.util.List<Constraint> |
getOwnedConstraints() |
java.util.List<Constraint> |
getOwnedInvariants() |
java.util.List<Operation> |
getOwnedOperations()
Returns the value of the 'Owned Operations' containment reference list.
|
java.util.List<Property> |
getOwnedProperties()
Returns the value of the 'Owned Properties' containment reference list.
|
TemplateSignature |
getOwnedSignature() |
Package |
getOwningPackage() |
java.util.List<Class> |
getSuperClasses()
Returns the value of the 'Super Classes' reference list.
|
TypeId |
getTypeId()
Return a unique StandardLibrary-independent identifier for this type.
|
TemplateParameters |
getTypeParameters()
Return the ordered list of type parameters of this type.
|
TemplateableElement |
getUnspecializedElement()
Returns the value of the 'Unspecialized Element' reference.
|
Class |
isClass() |
boolean |
isIsAbstract() |
boolean |
isIsActive() |
boolean |
isIsInterface() |
boolean |
isOrdered()
Return true if this type is a Collection type and has ordered elements.
|
TemplateParameter |
isTemplateParameter() |
boolean |
isUnique()
Return true if this type is a Collection type and has unique elements.
|
Operation |
lookupActualOperation(StandardLibrary standardLibrary,
Operation apparentOperation) |
LibraryFeature |
lookupImplementation(StandardLibrary standardLibrary,
Operation apparentOperation)
Return the dynamic (overloaded) implementation of the staticOperation applicable to the types managed
by the given Standard Library.
|
void |
removeClassListener(ClassListeners.IClassListener classListener) |
void |
setInstanceClassName(java.lang.String newInstanceClassName) |
void |
setIsAbstract(boolean newIsAbstract) |
void |
setIsActive(boolean newIsActive) |
void |
setIsInterface(boolean newIsInterface) |
void |
setName(java.lang.String newName) |
void |
setOwnedSignature(TemplateSignature newOwnedSignature) |
void |
setOwningPackage(Package newOwningPackage) |
void |
setUnspecializedElement(TemplateableElement newUnspecializedElement) |
Type |
specializeIn(CallExp callExpr,
Type selfType) |
java.lang.String |
toString() |
boolean |
validateUniqueInvariantName(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
createInstance, createInstance, flattenedType, getPackage, isEqualTo, isEqualToUnspecializedType, oclEquals, oclHashCode
getName
allOwnedElements, getAnnotatingComments, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue
eBasicSetContainer, getESObject, getETarget, getImage, getTarget, getText, setESObject, setTarget, unloaded
eAdapters, eBasicAdapters, eBasicProperties, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createInstance, createInstance
flattenedType, isEqualTo, isEqualToUnspecializedType
oclEquals, oclHashCode
getName
allOwnedElements, getAnnotatingComments, getESObject, getETarget, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected org.eclipse.emf.common.util.EList<Constraint> ownedConstraints
Owned Constraints
' containment reference list.
getOwnedConstraints()
protected org.eclipse.emf.common.util.EList<TemplateBinding> ownedBindings
Owned Bindings
' containment reference list.
getOwnedBindings()
protected TemplateSignature ownedSignature
Owned Signature
' containment reference.
getOwnedSignature()
protected TemplateableElement unspecializedElement
Unspecialized Element
' reference.
getUnspecializedElement()
protected org.eclipse.emf.common.util.EList<StereotypeExtender> extenders
Extenders
' reference list.
getExtenders()
protected static final java.lang.String INSTANCE_CLASS_NAME_EDEFAULT
Instance Class Name
' attribute.
getInstanceClassName()
protected java.lang.String instanceClassName
Instance Class Name
' attribute.
getInstanceClassName()
protected static final boolean IS_ABSTRACT_EDEFAULT
Is Abstract
' attribute.
isIsAbstract()
,
Constant Field Valuesprotected static final int IS_ABSTRACT_EFLAG
Is Abstract
' attribute.
isIsAbstract()
,
Constant Field Valuesprotected static final boolean IS_ACTIVE_EDEFAULT
Is Active
' attribute.
isIsActive()
,
Constant Field Valuesprotected static final int IS_ACTIVE_EFLAG
Is Active
' attribute.
isIsActive()
,
Constant Field Valuesprotected static final boolean IS_INTERFACE_EDEFAULT
Is Interface
' attribute.
isIsInterface()
,
Constant Field Valuesprotected static final int IS_INTERFACE_EFLAG
Is Interface
' attribute.
isIsInterface()
,
Constant Field Valuesprotected org.eclipse.emf.common.util.EList<Behavior> ownedBehaviors
Owned Behaviors
' containment reference list.
getOwnedBehaviors()
protected org.eclipse.emf.common.util.EList<Constraint> ownedInvariants
Owned Invariants
' containment reference list.
getOwnedInvariants()
protected org.eclipse.emf.common.util.EList<Operation> ownedOperations
Owned Operations
' containment reference list.
getOwnedOperations()
protected org.eclipse.emf.common.util.EList<Property> ownedProperties
Owned Properties
' containment reference list.
getOwnedProperties()
protected org.eclipse.emf.common.util.EList<Class> superClasses
Super Classes
' reference list.
getSuperClasses()
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class TypeImpl
@NonNull public java.util.List<Constraint> getOwnedConstraints()
getOwnedConstraints
in interface Namespace
PivotPackage.getNamespace_OwnedConstraints()
public TemplateSignature getOwnedSignature()
getOwnedSignature
in interface TemplateableElement
TemplateableElement.setOwnedSignature(TemplateSignature)
,
PivotPackage.getTemplateableElement_OwnedSignature()
,
TemplateSignature.getOwningElement()
public org.eclipse.emf.common.notify.NotificationChain basicSetOwnedSignature(TemplateSignature newOwnedSignature, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setOwnedSignature(TemplateSignature newOwnedSignature)
setOwnedSignature
in interface TemplateableElement
newOwnedSignature
- the new value of the 'Owned Signature' containment reference.TemplateableElement.getOwnedSignature()
public java.util.List<TemplateBinding> getOwnedBindings()
getOwnedBindings
in interface TemplateableElement
PivotPackage.getTemplateableElement_OwnedBindings()
,
TemplateBinding.getOwningElement()
public void setUnspecializedElement(TemplateableElement newUnspecializedElement)
setUnspecializedElement
in interface TemplateableElement
newUnspecializedElement
- the new value of the 'Unspecialized Element' reference.TemplateableElement.getUnspecializedElement()
@NonNull public java.util.List<StereotypeExtender> getExtenders()
getExtenders
in interface Class
PivotPackage.getClass_Extenders()
,
StereotypeExtender.getClass_()
public java.lang.String getInstanceClassName()
getInstanceClassName
in interface Class
Class.setInstanceClassName(String)
,
PivotPackage.getClass_InstanceClassName()
public void setInstanceClassName(java.lang.String newInstanceClassName)
setInstanceClassName
in interface Class
newInstanceClassName
- the new value of the 'Instance Class Name' attribute.Class.getInstanceClassName()
public boolean isIsAbstract()
isIsAbstract
in interface Class
Class.setIsAbstract(boolean)
,
PivotPackage.getClass_IsAbstract()
public void setIsAbstract(boolean newIsAbstract)
setIsAbstract
in interface Class
newIsAbstract
- the new value of the 'Is Abstract' attribute.Class.isIsAbstract()
public boolean isIsActive()
isIsActive
in interface Class
Class.setIsActive(boolean)
,
PivotPackage.getClass_IsActive()
public void setIsActive(boolean newIsActive)
setIsActive
in interface Class
newIsActive
- the new value of the 'Is Active' attribute.Class.isIsActive()
public boolean isIsInterface()
isIsInterface
in interface Class
Class.setIsInterface(boolean)
,
PivotPackage.getClass_IsInterface()
@NonNull public java.util.List<Constraint> getOwnedInvariants()
getOwnedInvariants
in interface Class
PivotPackage.getClass_OwnedInvariants()
public Package getOwningPackage()
getOwningPackage
in interface Class
Class.setOwningPackage(org.eclipse.ocl.pivot.Package)
,
PivotPackage.getClass_OwningPackage()
,
Package.getOwnedClasses()
public org.eclipse.emf.common.notify.NotificationChain basicSetOwningPackage(Package newOwningPackage, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setOwningPackage(Package newOwningPackage)
setOwningPackage
in interface Class
newOwningPackage
- the new value of the 'Owning Package' container reference.Class.getOwningPackage()
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd
in class ElementImpl
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class ElementImpl
public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
eBasicRemoveFromContainerFeature
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public boolean validateUniqueInvariantName(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
validateUniqueInvariantName
in interface Class
public void setIsInterface(boolean newIsInterface)
setIsInterface
in interface Class
newIsInterface
- the new value of the 'Is Interface' attribute.Class.isIsInterface()
@NonNull public java.util.List<Behavior> getOwnedBehaviors()
getOwnedBehaviors
in interface Class
PivotPackage.getClass_OwnedBehaviors()
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class NamedElementImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class NamedElementImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class NamedElementImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class NamedElementImpl
public int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
eBaseStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eBaseStructuralFeatureID
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
eDerivedStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eDerivedStructuralFeatureID
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.Object eInvoke(int operationID, org.eclipse.emf.common.util.EList<?> arguments) throws java.lang.reflect.InvocationTargetException
public <R> R accept(@NonNull Visitor<R> visitor)
Element
public void addClassListener(@NonNull ClassListeners.IClassListener classListener)
public boolean conformsTo(@NonNull StandardLibrary standardLibrary, @NonNull Type type)
Type
conformsTo
in interface Type
@NonNull public Type getCommonType(@NonNull IdResolver idResolver, @NonNull Type type)
Type
getCommonType
in interface Type
getCommonType
in class TypeImpl
@NonNull public CompleteInheritance getInheritance(@NonNull StandardLibrary standardLibrary)
Type
getInheritance
in interface Type
@NonNull public java.lang.String getMetaTypeName()
Class
getMetaTypeName
in interface Class
@NonNull public Class getNormalizedType(@NonNull StandardLibrary standardLibrary)
Type
getNormalizedType
in interface Type
@NonNull public java.util.List<Operation> getOwnedOperations()
Class
Operation
.
It is bidirectional and its opposite is 'Owning Class
'.
The Operations owned by the Class.
getOwnedOperations
in interface Class
PivotPackage.getClass_OwnedOperations()
,
Operation.getOwningClass()
@NonNull public java.util.List<Property> getOwnedProperties()
Class
Property
.
It is bidirectional and its opposite is 'Owning Class
'.
The Properties owned by the StructuredClassifier.
The attributes (i.e., the Properties) owned by the Class.
getOwnedProperties
in interface Class
PivotPackage.getClass_OwnedProperties()
,
Property.getOwningClass()
@NonNull public java.util.List<Class> getSuperClasses()
Class
Class
.
getSuperClasses
in interface Class
PivotPackage.getClass_SuperClasses()
@NonNull public TypeId getTypeId()
Type
@NonNull public TemplateParameters getTypeParameters()
Class
getTypeParameters
in interface Class
getTypeParameters
in class TypeImpl
public TemplateableElement getUnspecializedElement()
TemplateableElement
If the meaning of the 'Unspecialized Element' reference isn't clear, there really should be more of a description here...
getUnspecializedElement
in interface TemplateableElement
TemplateableElement.setUnspecializedElement(TemplateableElement)
,
PivotPackage.getTemplateableElement_UnspecializedElement()
public boolean isOrdered()
Class
public boolean isUnique()
Class
@Nullable public TemplateParameter isTemplateParameter()
TypeImpl
isTemplateParameter
in interface Type
isTemplateParameter
in class TypeImpl
@NonNull public Operation lookupActualOperation(@NonNull StandardLibrary standardLibrary, @NonNull Operation apparentOperation)
lookupActualOperation
in interface Class
@NonNull public LibraryFeature lookupImplementation(@NonNull StandardLibrary standardLibrary, @NonNull Operation apparentOperation)
Class
lookupImplementation
in interface Class
public void removeClassListener(@NonNull ClassListeners.IClassListener classListener)
public void setName(java.lang.String newName)
NamedElementImpl
setName
in interface NamedElement
setName
in class NamedElementImpl
newName
- the new value of the 'Name' attribute.NamedElement.getName()
@NonNull public Type specializeIn(CallExp callExpr, @Nullable Type selfType)
TypeImpl
specializeIn
in interface Type
specializeIn
in class TypeImpl