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:4.2:implementst [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +
 +----
 +
 +=== implementsT(#​id,​ #parent, #​super) ​ ===
 +Represents the implementation of an interface by a class.
 +
 +=== Arguments ===
 +== ==
 +**#​id:​**id\\
 +The unique id of this fact.
 +
 +**#​parent:​** [[classt|classT]]\\ ​
 +ID of the class.
 +
 +**#super:** [[classt|classT]],​ [[parameterizedtypet|parameterizedTypeT]]\\  ​
 +ID of a classT or a parameterizedTypeT referencing an interface implemented by the class.  ​
 +
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +class HelloUniverse implements Hello {
 +   ...
 +}
 +public interface Hello {
 +          ...
 +}
 +
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<Code lang-prolog>​
 +classT(#​id,​_,'​HelloUniverse',​[],​_).
 +implementsT(#​Implements,​ #id, #​interface).
 +classT(#​interface,​_,'​Hello',​[],​_).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_node_type_spec(implementsT,​[
 +     ​ast_arg(id, ​   mult(1,1,no ), id,   ​[implementsT]),​
 +     ​ast_arg(parent,​mult(1,​1,​no ), id,   ​[classT]),​
 +     ​ast_arg(super,​ mult(1,1,no ), id,   ​[classT,​ parameterizedTypeT]) ​
 +]).
 +</​Code>​
 +
  
research/jtransformer/api/java/pefs/4.2/implementst.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019