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

Both sides previous revision Previous revision
Next revision
Previous revision
research:jtransformer:api:java:pefs:4.0:commenttextt [2014/07/09 10:48]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:4.0:commenttextt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +
 +=== commentTextT(#​id,​ '​comment text'​) ​ ===
 +
 +Represents the text of a comment. The creation of these facts has to be enabled in the JTransformer Preferences.
 +
 +
 +== History ==
 +  * JTransformer 4.0: Renamed from sourceT to commentTextT
 +
 +=== Arguments ===
 +
 +==  ==
 +**#id:** [[commentt|commentT]]\\  ​
 +ID of the [[commentt|commentT]] where this comment belongs to.
 +
 +**comment:​** ​ atom\\ ​
 +The text of the comment.
 +
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +// line comment for method m
 +public void m() {
 +...
 +}
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<Code lang-prolog>​
 +methodT(Method,​ _, '​m',​ [], _, [], [], _),
 +commentT(Comment,​ Method, lineComment),​
 +commentTextT(Comment,​ '// line comment for method m').
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_relation_type_spec(commentTextT,​[
 +     ​ast_arg(id, ​     mult(1,1,no ), id,   ​[commentT]),​
 +     ​ast_arg(comment,​ mult(1,1,no ), attr, [atomic])
 +]).
 +</​Code>​
  
research/jtransformer/api/java/pefs/4.0/commenttextt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019