SDA SE Wiki

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

User Tools

Site Tools



markerAnnotationT(#id)

Java 5 Syntax Element

An attribute for annotationT facts.
Just to maintain the original syntax of annotations without arguments. Annotation is a marker annotation if the parenthesis's are omitted.
@marker instead of the normal annotation @marker().

Arguments

id: annotationT
ID of the corresponding annotationT

Sample Java Source

@MyAnnotation
public void function(){
}

Its PEF Representation

annotatedT(#Annotated, #Annotation),
annotationT(#Annotation, #Annotated, #Annotated, _, []),
markerAnnotationT(#Annotation),

AST Specification

 
%tree_constraints(markerAnnotationT ,[[#id]).
ast_relation('Java',markerAnnotationT,[
     ast_arg(id,     mult(1,1,no ), id,   [annotationT])
]).

research/jtransformer/api/java/pefs/2.9/markerannotationt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019