Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Famix-C-Entities/FamixCAttribute.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
|---|
| `parentType` | `FamixTAttribute` | `attributes` | `FamixTWithAttributes` | Type declaring the attribute. belongsTo implementation|

### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
Expand All @@ -15,7 +20,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

Expand Down
2 changes: 1 addition & 1 deletion src/Famix-C-Entities/FamixCBehaviouralEntity.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| `behaviouralPointers` | `FamixCBehaviouralEntity` | `referer` | `FamixCBehaviouralPointer` | All functions which addresses are used in this entity|
| `outgoingInvocations` | `FamixTWithInvocations` | `sender` | `FamixTInvocation` | Outgoing invocations sent by this behaviour.|
| `outgoingReferences` | `FamixTWithReferences` | `referencer` | `FamixTReference` | References from this entity to other entities.|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
Expand All @@ -24,7 +25,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|


Expand Down
9 changes: 4 additions & 5 deletions src/Famix-C-Entities/FamixCComment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
|---|
| `commentedEntity` | `FamixTComment` | `comments` | `FamixTWithComments` | Source code commented by the comment|

### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

## Properties
======================

| Name | Type | Default value | Comment |
|---|
| `content` | `String` | nil | Content of the comment as a String|

"
Class {
Expand Down
42 changes: 42 additions & 0 deletions src/Famix-C-Entities/FamixCEntityTyping.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"
## Relations
======================

### Association source
| Relation | Origin | Opposite | Type | Comment |
|---|
| `typedEntity` | `FamixTEntityTyping` | `typing` | `FamixTTypedEntity` | Entity deckaring the type.|

### Association target
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTEntityTyping` | `incomingTypings` | `FamixTType` | Type of the entity.|

### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `next` | `FamixTAssociation` | `previous` | `FamixTAssociation` | Next association in an ordered collection of associations. Currently not supported by the Moose importer|
| `previous` | `FamixTAssociation` | `next` | `FamixTAssociation` | Previous association in an ordered collection of associations. Currently not supported by the Moose importer|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|



"
Class {
#name : 'FamixCEntityTyping',
#superclass : 'FamixCEntity',
#traits : 'FamixTEntityTyping',
#classTraits : 'FamixTEntityTyping classTrait',
#category : 'Famix-C-Entities-Entities',
#package : 'Famix-C-Entities',
#tag : 'Entities'
}

{ #category : 'meta' }
FamixCEntityTyping class >> annotation [

<FMClass: #EntityTyping super: #FamixCEntity>
<package: #'Famix-C-Entities'>
<generated>
^ self
]
2 changes: 1 addition & 1 deletion src/Famix-C-Entities/FamixCEnum.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
| Relation | Origin | Opposite | Type | Comment |
|---|
| `incomingReferences` | `FamixTReferenceable` | `referredEntity` | `FamixTReference` | References to this entity by other entities.|
| `incomingTypings` | `FamixTType` | `declaredType` | `FamixTEntityTyping` | Relations to the entities that have this as type.|

### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
| `typedEntities` | `FamixTType` | `declaredType` | `FamixTTypedEntity` | Entities that have this type as declaredType|


## Properties
Expand Down
6 changes: 5 additions & 1 deletion src/Famix-C-Entities/FamixCEnumValue.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
|---|
| `parentEnum` | `FamixTEnumValue` | `enumValues` | `FamixTWithEnumValues` | The Enum declaring this value. It offers the implementation of belongsTo|

### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
Expand All @@ -15,7 +20,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|


Expand Down
2 changes: 1 addition & 1 deletion src/Famix-C-Entities/FamixCFunction.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
| `accesses` | `FamixTWithAccesses` | `accessor` | `FamixTAccess` | Accesses to variables made by this behaviour.|
| `outgoingInvocations` | `FamixTWithInvocations` | `sender` | `FamixTInvocation` | Outgoing invocations sent by this behaviour.|
| `outgoingReferences` | `FamixTWithReferences` | `referencer` | `FamixTReference` | References from this entity to other entities.|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
Expand All @@ -28,7 +29,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|


Expand Down
14 changes: 14 additions & 0 deletions src/Famix-C-Entities/FamixCImportingContext.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ FamixCImportingContext >> importDereferencedInvocation [
^ self importAssociation: (self class fm3ClassNamed: #DereferencedInvocation)
]

{ #category : 'importing' }
FamixCImportingContext >> importEntityTyping [

<generated>
^ self importAssociation: (self class fm3ClassNamed: #EntityTyping)
]

{ #category : 'importing' }
FamixCImportingContext >> importEnum [

Expand Down Expand Up @@ -283,6 +290,13 @@ FamixCImportingContext >> shouldImportDereferencedInvocation [
^ self shouldImport: #DereferencedInvocation
]

{ #category : 'testing' }
FamixCImportingContext >> shouldImportEntityTyping [

<generated>
^ self shouldImport: #EntityTyping
]

{ #category : 'testing' }
FamixCImportingContext >> shouldImportEnum [

Expand Down
6 changes: 5 additions & 1 deletion src/Famix-C-Entities/FamixCLocalVariable.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
|---|
| `parentBehaviouralEntity` | `FamixTLocalVariable` | `localVariables` | `FamixTWithLocalVariables` | Behavioural entity declaring this local variable. belongsTo implementation|

### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
Expand All @@ -15,7 +20,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|


Expand Down
6 changes: 5 additions & 1 deletion src/Famix-C-Entities/FamixCParameter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
|---|
| `parentBehaviouralEntity` | `FamixTParameter` | `parameters` | `FamixTWithParameters` | Behavioural entity containing this parameter. belongsTo implementation|

### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
Expand All @@ -15,7 +20,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|


Expand Down
2 changes: 1 addition & 1 deletion src/Famix-C-Entities/FamixCPrimitiveType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
| Relation | Origin | Opposite | Type | Comment |
|---|
| `incomingReferences` | `FamixTReferenceable` | `referredEntity` | `FamixTReference` | References to this entity by other entities.|
| `incomingTypings` | `FamixTType` | `declaredType` | `FamixTEntityTyping` | Relations to the entities that have this as type.|

### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
| `typedEntities` | `FamixTType` | `declaredType` | `FamixTTypedEntity` | Entities that have this type as declaredType|


## Properties
Expand Down
7 changes: 7 additions & 0 deletions src/Famix-C-Entities/FamixCTEntityCreator.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ FamixCTEntityCreator >> newDereferencedInvocation [
^ self add: FamixCDereferencedInvocation new
]

{ #category : 'entity creation' }
FamixCTEntityCreator >> newEntityTyping [

<generated>
^ self add: FamixCEntityTyping new
]

{ #category : 'entity creation' }
FamixCTEntityCreator >> newEnum [

Expand Down
2 changes: 1 addition & 1 deletion src/Famix-C-Entities/FamixCType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
| Relation | Origin | Opposite | Type | Comment |
|---|
| `incomingReferences` | `FamixTReferenceable` | `referredEntity` | `FamixTReference` | References to this entity by other entities.|
| `incomingTypings` | `FamixTType` | `declaredType` | `FamixTEntityTyping` | Relations to the entities that have this as type.|

### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
| `typeAliases` | `FamixTWithTypeAliases` | `aliasedType` | `FamixTTypeAlias` | Aliases|
| `typedEntities` | `FamixTType` | `declaredType` | `FamixTTypedEntity` | Entities that have this type as declaredType|


## Properties
Expand Down
6 changes: 5 additions & 1 deletion src/Famix-C-Entities/FamixCUnknownVariable.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
## Relations
======================

### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
Expand All @@ -10,7 +15,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|


Expand Down
7 changes: 5 additions & 2 deletions src/Famix-C-Generator/FamixCGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Class {
'unknownVar',
'behaviouralPointer',
'namespace',
'structuredType'
'structuredType',
'entityTyping'
],
#category : 'Famix-C-Generator',
#package : 'Famix-C-Generator'
Expand Down Expand Up @@ -90,6 +91,7 @@ FamixCGenerator >> defineClasses [
enum := builder newClassNamed: #Enum.
union := builder newClassNamed: #Union.
aliasType := builder newClassNamed: #AliasType.
entityTyping := builder newClassNamed: #EntityTyping.

"ContainerEntity: BehaviouralEntity"
behaviouralEntity := builder newClassNamed: #BehaviouralEntity.
Expand Down Expand Up @@ -187,7 +189,8 @@ FamixCGenerator >> defineHierarchy [
type --|> containerEntity.
type --|> #TType.
type --|> #TWithTypeAliases.


entityTyping --|> #TEntityTyping .

union --|> structuredType.

Expand Down
2 changes: 1 addition & 1 deletion src/Famix-Cpp-Entities/FamixCppClass.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
| Relation | Origin | Opposite | Type | Comment |
|---|
| `incomingReferences` | `FamixTReferenceable` | `referredEntity` | `FamixTReference` | References to this entity by other entities.|
| `incomingTypings` | `FamixTType` | `declaredType` | `FamixTEntityTyping` | Relations to the entities that have this as type.|
| `subInheritances` | `FamixTWithInheritances` | `superclass` | `FamixTInheritance` | Subinheritance relationships, i.e. known subclasses of this type.|

### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
| `typedEntities` | `FamixTType` | `declaredType` | `FamixTTypedEntity` | Entities that have this type as declaredType|


## Properties
Expand Down
6 changes: 3 additions & 3 deletions src/Famix-Cpp-Entities/FamixCppConcretization.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
### Association source
| Relation | Origin | Opposite | Type | Comment |
|---|
| `genericEntity` | `FamixTConcretization` | `concretizations` | `FamixTParametricEntity` | Generic entity linked to in this relationship. from-side of the association|
| `typeArgument` | `FamixTConcretization` | `outgoingConcretizations` | `FamixTTypeArgument` | The type argument that concretizes the type parameter|

### Association target
| Relation | Origin | Opposite | Type | Comment |
|---|
| `concreteEntity` | `FamixTConcretization` | `genericization` | `FamixTParametricEntity` | Concrete entity linked to in this relationship. to-side of the association|
| `typeParameter` | `FamixTConcretization` | `concretizations` | `FamixTTypeParameter` | Type parameter linked to in this relationship.|

### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `next` | `FamixTAssociation` | `previous` | `FamixTAssociation` | Next association in an ordered collection of associations. Currently not supported by the Moose importer|
| `parameterConcretizations` | `FamixTConcretization` | `concretizations` | `FamixTParameterConcretization` | |
| `previous` | `FamixTAssociation` | `next` | `FamixTAssociation` | Previous association in an ordered collection of associations. Currently not supported by the Moose importer|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
| `triggeringAssociation` | `FamixTConcretization` | `concretizations` | `FamixTParametricAssociation` | The association that triggers this concretization.|



Expand Down
6 changes: 5 additions & 1 deletion src/Famix-Cpp-Entities/FamixCppImplicitVariable.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
|---|
| `parentBehaviouralEntity` | `FamixTImplicitVariable` | `implicitVariables` | `FamixTWithImplicitVariables` | The behaviour containing this implicit variable. belongsTo implementation|

### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `typing` | `FamixTTypedEntity` | `typedEntity` | `FamixTEntityTyping` | Association linking this entity to its declared type.|

### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
Expand All @@ -15,7 +20,6 @@
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|


Expand Down
Loading
Loading