SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

research:jtransformer:api:java:pefs:2.9:pef_by_example [2018/05/09 01:59] (current)
Line 1: Line 1:
 +
 +====== PEF by Example ======
 +
 +The PEF representation of a simple Java program gives you an idea how the logic-based representation works. ​
 +
 +==== Example ====
 +
 +Click on a syntax element (the green, inlined links) to see the corresponding program element fact description.
 +
 +public [[classT|class HelloWorld]] [[extendsT|extends HelloUniverse]] { \\
 +\\
 +<​html>&​nbsp;&​nbsp;</​html>​[[fieldT|static String message;]] \\
 +\\
 +<​html>&​nbsp;&​nbsp;</​html>​public static [[methodT|void main]]([[paramT|String[] args]]){\\
 +<​html>&​nbsp;&​nbsp;&​nbsp;&​nbsp;</​html>​System.out.println([[literalT|"​Hello World! I've got a message for you: "]] + [[getFieldT|message]]);​\\
 +<​html>&​nbsp;&​nbsp;</​html>​}\\
 +\\
 +}
  
research/jtransformer/api/java/pefs/2.9/pef_by_example.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019