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:enumconstantt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
 +
 +=== enumConstantT(#​id) ​ ===
 +++ Java 5 Syntax Element | - supported since JTransformer 2.3.  ++
 +
 +Represents the field declaration in enumeration.
 +
 +===Attributes===
 +== ==
 +**#id:** [[fieldt|fieldT]]\\ ​
 +The id of the referenced fieldT.
 +
 +=== Sample Java Source===
 +==  ==
 +<Code lang-java>​
 +public enum Week {
 + Monday
 +}
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +
 +==  ==
 +<Code lang-prolog>​
 +classT(#​Class,​ _, '​Week',​ [], []),
 +enumT(#​Class),​
 +...
 +fieldT(#​Field,​ #Class, #Type, '​Monday',​ #Init),
 +enumConstantT(#​Field),​
 +...
 +</​Code>​
 +
 +=== AST Specification ===
 +<​Code>​
 +ast_relation('​Java',​enumConstantT,​[
 +     ​ast_arg(id, ​    ​mult(1,​1,​no ),  id,   ​[fieldT])
 +]).
 +</​Code>​
 +
  
research/jtransformer/api/java/pefs/4.2/enumconstantt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019