Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract TCanBeStub from TSourcedEntity #856

Draft
wants to merge 5 commits into
base: development
Choose a base branch
from
Draft
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
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
Loading