-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Extract method for importing object attributes - JavaEntityFinder searches in inner types - Read enums from Jackson lists - Move special types import method to their class instead of the importer - Initialize special types and map them to their fully qualified name - Add `java.sql.Date` special date - Remove dead code (`isDictionary:`)
- Loading branch information
1 parent
47cbcc1
commit 8b0917f
Showing
9 changed files
with
153 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
" | ||
A representation of the `java.sql.Date` type which is serialized using a String representation. | ||
" | ||
Class { | ||
#name : #FamixValueJavaSQLDate, | ||
#superclass : #FamixValueJavaDate, | ||
#category : #'Famix-Value-Types' | ||
} | ||
|
||
{ #category : #importing } | ||
FamixValueJavaSQLDate >> importSpecial: rawValue on: importer [ | ||
"The value is the string representation in 'yyyy-mm-dd' format." | ||
|
||
^ importer model newOfPrimitiveType | ||
value: rawValue; | ||
type: (importer entityFinder findTypeNamed: 'String') | ||
] | ||
|
||
{ #category : #converting } | ||
FamixValueJavaSQLDate >> value: date asFASTJavaExpressionOn: visitor [ | ||
"Call java.sql.Date#valueOf(String) to recreate this date." | ||
|
||
^ visitor model newMethodInvocation | ||
receiver: (FASTJavaBuilder current referType: type); | ||
name: 'valueOf'; | ||
addArgument: (visitor model newStringLiteral primitiveValue: | ||
date value first value value); | ||
yourself | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters