Skip to content

Commit

Permalink
Merge pull request #856 from jecisc/tcanbestub
Browse files Browse the repository at this point in the history
Extract TCanBeStub from TSourcedEntity
  • Loading branch information
jecisc authored Nov 27, 2024
2 parents a8cfc04 + d9b8c0b commit a834212
Show file tree
Hide file tree
Showing 58 changed files with 167 additions and 451 deletions.
7 changes: 7 additions & 0 deletions src/Famix-Deprecated/MooseEntity.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : #MooseEntity }

{ #category : #'*Famix-Deprecated' }
MooseEntity >> isStub: boolean [

self deprecated: 'If an entity can be stub, it should have the TCanBeStub trait.'
]
1 change: 0 additions & 1 deletion src/Famix-Java-Entities/FamixJavaAccess.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
| `isWrite` | `Boolean` | false | Write access|
"
Expand Down
6 changes: 0 additions & 6 deletions src/Famix-Java-Entities/FamixJavaConcretization.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
Expand Down
6 changes: 0 additions & 6 deletions src/Famix-Java-Entities/FamixJavaImplementation.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
Expand Down
6 changes: 0 additions & 6 deletions src/Famix-Java-Entities/FamixJavaImport.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
Expand Down
6 changes: 0 additions & 6 deletions src/Famix-Java-Entities/FamixJavaInheritance.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
Expand Down
1 change: 0 additions & 1 deletion src/Famix-Java-Entities/FamixJavaInvocation.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
| `signature` | `String` | nil | Signature of the message being sent|
"
Expand Down
5 changes: 0 additions & 5 deletions src/Famix-Java-Entities/FamixJavaMethod.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,6 @@ FamixJavaMethod >> isSetter [
self outgoingInvocations isEmpty ] ] ] ] ] ]
]

{ #category : #printing }
FamixJavaMethod >> isStub [
^ super isStub or: [ self parentType isNotNil and: [ self parentType isStub ] ]
]

{ #category : #testing }
FamixJavaMethod >> isSurelyInvokedBy: aFAMIXMethod [
| outgoingInvo |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
Expand Down
6 changes: 0 additions & 6 deletions src/Famix-Java-Entities/FamixJavaReference.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
Expand Down
6 changes: 0 additions & 6 deletions src/Famix-Java-Entities/FamixJavaSourcedEntity.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
Expand Down
10 changes: 0 additions & 10 deletions src/Famix-Java-Tests/FamixJavaMethodTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,6 @@ FamixJavaMethodTest >> testIsSetter [
self assert: method isSetter
]

{ #category : #tests }
FamixJavaMethodTest >> testIsStubWhenParentIsStub [
| aClass |
aClass := FamixJavaClass new.
method parentType: aClass.
aClass isStub: true.
self assert: aClass isStub.
self assert: method isStub
]

{ #category : #tests }
FamixJavaMethodTest >> testOverriddenMethod [

Expand Down
Loading

0 comments on commit a834212

Please sign in to comment.