Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
d3ee90a8
Commit
d3ee90a8
authored
8 months ago
by
Sophie Coudert
Browse files
Options
Downloads
Patches
Plain Diff
checkTypes restored
parent
5dabad1d
No related branches found
Branches containing commit
No related tags found
3 merge requests
!504
merge first stable version of Avatar-SysML V2
,
!503
merge the first stable version of the Avatar-SysML parser/generator
,
!501
Avatar sys ml 04 2024
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/avatartranslator/tosysmlv2/AvatarFromSysML.java
+1
-0
1 addition, 0 deletions
...main/java/avatartranslator/tosysmlv2/AvatarFromSysML.java
src/main/java/ui/AvatarMethod.java
+3
-3
3 additions, 3 deletions
src/main/java/ui/AvatarMethod.java
with
4 additions
and
3 deletions
src/main/java/avatartranslator/tosysmlv2/AvatarFromSysML.java
+
1
−
0
View file @
d3ee90a8
...
...
@@ -500,6 +500,7 @@ public class AvatarFromSysML {
// create method
AvatarMethod
am
=
new
AvatarMethod
(
sm
.
getName
(),
null
);
// add method
System
.
out
.
println
(
"$$$$$$$$$$$ "
+
theBlock
.
getName
()
+
" : "
+
am
.
getName
());
theBlock
.
addMethod
(
am
);
// add input parameters to method
buildProfile
(
sm
,
am
,
theBlock
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/ui/AvatarMethod.java
+
3
−
3
View file @
d3ee90a8
...
...
@@ -154,7 +154,7 @@ public class AvatarMethod {
// So, there is a return type!
rt
=
tmp
.
trim
();
method
=
method
.
substring
(
index2
+
1
,
method
.
length
()).
trim
();
if
(!
isAValidId
(
rt
,
false
,
false
,
false
,
false
,
extraTypes
))
{
if
(!
isAValidId
(
rt
,
false
,
false
,
false
,
checkTypes
,
extraTypes
))
{
TraceManager
.
addDev
(
"Unvalid return type: "
+
rt
);
return
null
;
}
...
...
@@ -252,12 +252,12 @@ public class AvatarMethod {
return
null
;
}
TraceManager
.
addDev
(
"Checking input parameter"
);
if
(!
isAValidId
(
splitted
[
i
],
false
,
false
,
false
,
false
,
extraTypes
))
{
if
(!
isAValidId
(
splitted
[
i
],
false
,
false
,
false
,
checkTypes
,
extraTypes
))
{
TraceManager
.
addDev
(
"Unvalid input type #"
+
i
+
": "
+
splitted
[
i
]);
return
null
;
}
if
(!
isAValidId
(
splitted
[
i
+
1
],
true
,
true
,
true
,
checkTypes
,
extraTypes
))
{
if
(!
isAValidId
(
splitted
[
i
+
1
],
true
,
true
,
true
,
false
,
extraTypes
))
{
TraceManager
.
addDev
(
"Unvalid id of parameter "
+
splitted
[
i
+
1
]);
return
null
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment