首页> 外国专利> System and method supporting nonlocal values

System and method supporting nonlocal values

机译:支持非本地值的系统和方法

摘要

To support values of properties, a class includes fields to support values in preallocated memory space and with an option data structure which supports, in instances of the class, references to option values without preallocation of memory space. The field and option values are accessed in an instance object of the class using expressions of the same syntactic form. During compilation, the compiler checks the type of an option value against a type description within the option data structure. If a value has not been set for an instance object, a get operation results in getting of the default value for the class. Different classes may support different forms of data structures such as a linked list or a hash table. During compilation, a method call to an object is encoded without regard to the form of the option data structure. When an option value is changed, a change handler identified by an option binding of the data structure is processed. That option binding may be located by first searching a mapping data structure for a previously computed mapping to the option binding or by computing the mapping to the option binding. An option value may be set in an option data structure from an initialization expression which includes the name of the option value and, as an argument, the option value. Nonlocal option values may be applied to plural objects in a nonlocal option hierarchy such as a graphical hierarchy.
机译:为了支持属性值,一个类包括一些字段以支持预分配的内存空间中的值,并且具有一个选项数据结构,该选项数据结构在类的实例中支持对选项值的引用而无需预先分配存储空间。使用相同语法形式的表达式在类的实例对象中访问字段和选项值。在编译期间,编译器会根据选项数据结构中的类型描述检查选项值的类型。如果尚未为实例对象设置值,则执行get操作将获取该类的默认值。不同的类可能支持不同形式的数据结构,例如链表或哈希表。在编译期间,对对象的方法调用进行编码,而不考虑选项数据结构的形式。更改选项值时,将处理由数据结构的选项绑定标识的更改处理程序。可以通过首先在映射数据结构中搜索先前计算的到选项绑定的映射或通过计算到选项绑定的映射来定位该选项绑定。可以从初始化表达式中的选项数据结构中设置选项值,该初始化表达式包括选项值的名称以及作为参数的选项值。非本地选项值可以应用于非本地选项层次结构(例如图形层次结构)中的多个对象。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号