SDA SE Wiki

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

User Tools

Site Tools


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
ID of the commentT where this comment belongs to.

comment: atom
The text of the comment.

Sample Java Source

// line comment for method m
public void m() {
...
}

Its PEF Representation

methodT(Method, _, 'm', [], _, [], [], _),
commentT(Comment, Method, lineComment),
commentTextT(Comment, '// line comment for method m').

AST Specification

ast_relation_type_spec(commentTextT,[
     ast_arg(id,      mult(1,1,no ), id,   [commentT]),
     ast_arg(comment, mult(1,1,no ), attr, [atomic])
]).
research/jtransformer/api/java/pefs/4.0/commenttextt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2025