@Java']Java: Bringing a richer annotation model to Java']Java

被引:14
|
作者
Cazzola, Walter [1 ]
Vacchi, Edoardo [1 ]
机构
[1] Univ Milan, Dept Comp Sci, I-20122 Milan, Italy
关键词
!text type='Java']Java[!/text; Meta-data; Annotations; Reflection; REFLECTION; DESIGN;
D O I
10.1016/j.cl.2014.02.002
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The ability to annotate code and, in general, the capability to attach arbitrary meta-data to portions of a program are features that have become more and more common in programming languages. Annotations in Java make it possible to attach custom, structured meta-data to declarations of classes, fields and methods. However, the mechanism has some limits: annotations can only decorate declarations and their instantiation can only be resolved statically. With this work, we propose an extension to Java (named @Java) with a richer annotation model, supporting code block and expression annotations, as well as dynamically evaluated members. In other words, in our model, the granularity of annotations extends to the statement and expression level and annotations may hold the result of runtime-evaluated expressions. Our extension to the Java annotation model is twofold: (i) we introduced block and expression annotations and (ii) we allow every annotation to hold dynamically evaluated values. Our implementation also provides an extended reflection API to support inspection and retrieval of our enhanced annotations. (C) 2014 Elsevier Ltd. All rights reserved.
引用
收藏
页码:2 / 18
页数:17
相关论文
共 50 条
  • [1] Bringing Java']Java to TMN
    Horowitz, JR
    [J]. NOMS '98 - 1998 IEEE NETWORK OPERATIONS AND MANAGEMENT SYMPOSIUM, VOLS 1-3, 1998, : 629 - 638
  • [2] Semantic Annotation for Java']Java
    Lyon, Douglas
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2010, 9 (03): : 19 - 29
  • [3] Bringing Java']Java to the enterprise: Oracle on its Java']Java server strategy
    Rosenberg, D
    [J]. IEEE INTERNET COMPUTING, 1998, 2 (02) : 52 - 59
  • [4] Java']Java, Java']Java, Java']Java and more
    Makulowich, JS
    [J]. DATABASE, 1997, 20 (01): : 74 - 75
  • [5] JAAE: The Java']Java Abstract Annotation Editor
    Habernal, Ivan
    Konopik, Miloslav
    [J]. INTERSPEECH 2007: 8TH ANNUAL CONFERENCE OF THE INTERNATIONAL SPEECH COMMUNICATION ASSOCIATION, VOLS 1-4, 2007, : 1973 - 1976
  • [6] GSTARI model of BPR assets in West Java']Java, Central Java']Java, and East Java']Java
    Susanti, Susi
    Handajani, Sri Sulistijowati
    Indriati, Diari
    [J]. 7TH INTERNATIONAL SEMINAR ON NEW PARADIGM AND INNOVATION ON NATURAL SCIENCE AND ITS APPLICATION, 2018, 1025
  • [7] Jannovar: A Java']Java Library for Exome Annotation
    Jaeger, Marten
    Wang, Kai
    Bauer, Sebastian
    Smedley, Damian
    Krawitz, Peter
    Robinson, Peter N.
    [J]. HUMAN MUTATION, 2014, 35 (05) : 548 - 555
  • [8] A Java']Java Code Annotation Approach for Model Checking Software Systems
    Ferreira, Glauber
    Loureiro, Emerson
    Oliveira, Elthon
    [J]. APPLIED COMPUTING 2007, VOL 1 AND 2, 2007, : 1536 - 1537
  • [9] Java']Java, Java']Java everywhere
    不详
    [J]. DATAMATION, 1996, 42 (11): : 11 - 11
  • [10] LoopRNA - JAVA']JAVA MODULE FOR RNA STRUCTURE ANNOTATION
    Minkov, Georgi
    Toneva, Valentina
    Ivanova, Zdravka
    Baev, Vesselin
    [J]. COMPTES RENDUS DE L ACADEMIE BULGARE DES SCIENCES, 2018, 71 (09): : 1215 - 1221