首页> 外文期刊>Computer languages >An attribute-grammar framework for specifying the accessibility in Java programs
【24h】

An attribute-grammar framework for specifying the accessibility in Java programs

机译:用于指定Java程序中可访问性的属性语法框架

获取原文
获取原文并翻译 | 示例
           

摘要

The three access modifiers―public, protected, and private―control the accessibility of the members of a type in the Java programming language. Furthermore, the accessibility may be transmitted along the two structures―package structure and inheritance structure. It is difficult to identify the weaknesses of the access modifiers from the informal semantics stated in the language manual. We develop a formal framework for specifying the accessibility in Java programs based on attribute grammars. With the help of this framework, we found several situations in the language specification that are irregular or counter-intuitive or ambiguous. These situations may confuse the programmers and hence may create weaknesses in Java programs.
机译:三个访问修饰符(公共,受保护和私有)控制Java编程语言中类型成员的可访问性。此外,可访问性可以沿着包结构和继承结构这两个结构传递。从语言手册中陈述的非正式语义很难识别出访问修饰符的弱点。我们开发了一个正式的框架,用于基于属性语法在Java程序中指定可访问性。在此框架的帮助下,我们在语言规范中发现了几种不规则,违反直觉或模棱两可的情况。这些情况可能会使程序员感到困惑,从而可能在Java程序中造成缺陷。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号