Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Java 5 Syntax Element - supported since JTransformer 2.3.
Represents a member value pair in an annotationT expression. For example queries see the annotationT description.
#id: id
the unique ID assigned to this fact.
#parent: annotationT
the parent element.
Either the ID of the annotated element or memberValueT fact in case of a nested annotation.
e.g. @Ann2
in @Ann(value = 1, ann1 = @Ann2(id=1))
#annotationMember : annotationMemberT, null
the referenced annotation member.
#valueLiteral: AnnotationExpression, null
@ThisAnnotation("Bang") public void method(){ }
memberValueT(#MemberValue, #Annotation, 'null', #Literal), annotatedT(#Annotated, #Annotation), annotationT(#Annotation, #Annotated, #Annotated, _, [#MemberValue]), literalT(#Literal, #MemberValue, #Annotated, type(class, ..., 0), 'Bang'),
ast_node_def('Java',memberValueT,[ ast_arg(id, mult(1,1,no ), id, [memberValueT]), ast_arg(parent, mult(1,1,no ), id, [annotationT]), ast_arg(ref, mult(1,1,no ), id, [annotationMemberT, nullType]), ast_arg(default,mult(1,1,no ), id, [nullType, annotationExpressionType]) ]).