Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
EmbeddedMontiArc
Commits
5a538553
Unverified
Commit
5a538553
authored
Dec 14, 2017
by
sschneiders
Committed by
GitHub
Dec 14, 2017
Browse files
replaced system prints with logger debug output
parent
532e7310
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/embeddedmontiarc/embeddedmontiarc/_symboltable/EmbeddedMontiArcSymbolTableCreator.java
View file @
5a538553
...
@@ -152,7 +152,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
...
@@ -152,7 +152,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
return
;
return
;
}
}
// creates all instances which are created through the top level component
// creates all instances which are created through the top level component
//System.out.println
("endVisit of " + node.getComponent().getSymbol().get().getFullName()); //,"MontiArcSymbolTableCreator");
Log
.
debug
(
"endVisit of "
+
node
.
getComponent
().
getSymbol
().
get
().
getFullName
()
,
"SymbolTableCreator:"
);
//,"MontiArcSymbolTableCreator");
// new Error().printStackTrace();
// new Error().printStackTrace();
instanceSymbolCreator
.
createInstances
(
instanceSymbolCreator
.
createInstances
(
(
ComponentSymbol
)
(
Log
.
errorIfNull
(
node
.
getComponent
().
getSymbol
().
orElse
(
null
)))
(
ComponentSymbol
)
(
Log
.
errorIfNull
(
node
.
getComponent
().
getSymbol
().
orElse
(
null
)))
...
@@ -422,7 +422,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
...
@@ -422,7 +422,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
}
else
if
(
portName
.
getPortArray
().
get
().
getLowerbound
().
isPresent
())
{
}
else
if
(
portName
.
getPortArray
().
get
().
getLowerbound
().
isPresent
())
{
names
=
getmnPortNameParts
(
name
,
portName
);
names
=
getmnPortNameParts
(
name
,
portName
);
}
else
{
}
else
{
//System.out.println
(portName.toString());
Log
.
debug
(
portName
.
toString
()
,
"PortName:"
);
int
size
=
countPortArrayInstances
(
name
,
portName
.
getCompName
().
orElse
(
null
),
portName
.
getCompArray
().
orElse
(
null
));
int
size
=
countPortArrayInstances
(
name
,
portName
.
getCompName
().
orElse
(
null
),
portName
.
getCompArray
().
orElse
(
null
));
Log
.
debug
(
"Size"
+
size
,
"PortNameParts"
);
Log
.
debug
(
"Size"
+
size
,
"PortNameParts"
);
...
@@ -476,7 +476,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
...
@@ -476,7 +476,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
present
=
curScope
.
resolve
(
portName
+
"["
+
(
counter
+
1
)
+
"]"
,
PortSymbol
.
KIND
).
isPresent
();
present
=
curScope
.
resolve
(
portName
+
"["
+
(
counter
+
1
)
+
"]"
,
PortSymbol
.
KIND
).
isPresent
();
if
(
present
)
++
counter
;
if
(
present
)
++
counter
;
else
{
else
{
//System.out.println
(curScope.toString());
Log
.
debug
(
curScope
.
toString
()
,
"CurScope:"
);
Log
.
debug
(
"Could not resolve "
+
portName
+
"["
+
(
counter
+
1
)
+
"]"
,
"countPortArrayInstances"
);
Log
.
debug
(
"Could not resolve "
+
portName
+
"["
+
(
counter
+
1
)
+
"]"
,
"countPortArrayInstances"
);
}
}
}
}
...
@@ -484,7 +484,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
...
@@ -484,7 +484,7 @@ public class EmbeddedMontiArcSymbolTableCreator extends EmbeddedMontiArcSymbolTa
//TODO
//TODO
present
=
true
;
present
=
true
;
Log
.
debug
(
"compInstanceName: "
+
compName
,
"Resolving"
);
Log
.
debug
(
"compInstanceName: "
+
compName
,
"Resolving"
);
//System.out.println(compName
);
Log
.
debug
(
compName
,
"ComponentName"
);
ComponentInstanceSymbol
symbol
;
ComponentInstanceSymbol
symbol
;
symbol
=
curScope
.<
ComponentInstanceSymbol
>
resolve
(
compName
,
ComponentInstanceSymbol
.
KIND
).
get
();
symbol
=
curScope
.<
ComponentInstanceSymbol
>
resolve
(
compName
,
ComponentInstanceSymbol
.
KIND
).
get
();
for
(
PortSymbol
portSymbol
:
symbol
.
getComponentType
().
getAllPorts
())
{
for
(
PortSymbol
portSymbol
:
symbol
.
getComponentType
().
getAllPorts
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment