Customize Java-Expression "toString" [message #1843730] |
Mon, 16 August 2021 05:19  |
Eclipse User |
|
|
|
I am using JBase with Java-Expressions my project.
Luckily, when I am parsing my rules and want to print the entered input of the user I can easily call NodeModelUtils.getTokenText(NodeModelUtils.findActualNodeFor(object)) . Let's call this the "toString" Method for the rest of this thread.
While this is very helpful I couldn't figure out how it works in details since it is very low level implemented. I wanted to introduce tiny changes to the "toString" Method. I.e. I want to introduce a namespace for the variables(a = 5; should become MyNameSpace.a = 5;). Furthermore, I would like to enforce line endings "\n" to not get converted to whitespaces like it is the case in the getTokenText Method.
I couldn't find an entry point where to start.
Can You help?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06931 seconds