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.2:intersectiontypet [2017/08/31 18:00]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:4.2:intersectiontypet [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
  
 +----
 +
 +=== intersectionTypeT(#​id,​ #rawType, [#​type_1,​...]) ​ ===
 +
 +Represents the intersection type in a type cast. See the [[http://​docs.oracle.com/​javase/​specs/​jls/​se8/​html/​jls-4.html#​jls-4.9|Java Language Specification]].
 +
 +=== Arguments ===
 +== ==
 +**#id:** id \\ 
 +the unique ID assigned to this fact.
 +
 +**[#​type_1,​…]:​** [[type_inst|Type reference]]\\ ​
 +the ids of all the types in the intersection.
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +Comparable<​String>​ c = (Comparable<​String>​ & Serializable) o;
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<​Code>​
 +lobalT(#​Local,​ ... '​c',​ ...).
 +typeCastT(#​TypeCast,​ #Local, ..., #​IntersectionType,​ ...).
 +intersectionTypeT(#​IntersectionType,​ [#​ComparableString,​ #​RefToSerializable]).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_node_type_spec(intersectionTypeT,​[
 +     ​ast_arg(id, ​     mult(1,1,no ),  id,  [intersectionTypeT]),​
 +     ​ast_arg(types, ​  ​mult(0,​*,​ord ), id,  [type_inst])
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/4.2/intersectiontypet.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019