`
duiduifei
  • 浏览: 27796 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

AS3的introspection

    博客分类:
  • flex
 
阅读更多

AS3用短而雅致的语法用于introspection
例子如下:
var p:* = workingman[i][“我要加工资!”];
它表示获得worker[i]对象的“我要加工资!”这个方法的引用。

但为啥不用点号连接呢而用中括号括起来呢?
如果用点号的话,就要让编译器去找出确切的方法,而用方括号就是告诉编译器你不用担心,在运行时,程序会关心方括号里的东东的!

分享到:
评论

相关推荐

    commons-beanutils-1.9.2包含全部jar包源码及API文档

    The Java language provides Reflection and Introspection APIs (see the java.lang.reflect and java.beans packages in the JDK Javadocs). However, these APIs can be quite complex to understand and utilize...

    Introspection for C and its Applications to Library Robustness - 2017 (1712.01163)-计算机科学

    Introspection for C and its Applications to Library RobustnessManuel Riggera, René Mayrhofera, Roland Schatzb, Matthias Grimmerb, and Hanspeter Mössenböckaa Johannes Kepler University Linz, ...

    flash反射实例

    6. **自省(Introspection)**:通过反射,开发者可以实现自省,即程序能够了解自身的结构和行为,这有助于编写更加灵活和适应性强的代码。 压缩包中的"flash反射实例"很可能是包含了一些AS3.0代码文件,通过这些...

    Java Reflection in Action

    code performing introspection, proxies, class loading, and so on, that are often seen but not often explained well in everyday Java pro- grams. And even experts will find new ideas and well-thought ...

    Manning Java Reflection In Action

    code performing introspection, proxies, class loading, and so on, that are often seen but not often explained well in everyday Java programs. And even experts will find new ideas and well-thought out ...

    python pywin32

    Python is a remarkably powerful dynamic programming language that is used in a wide variety of application domains. Python is often compared to ...embeddable within applications as a scripting interface

    beanutils-1.8.3.chm

    The Bean Introspection Utilities component of the Apache Commons subproject offers low-level utility classes that assist in getting and setting property values on Java classes that follow the naming ...

    Addison.Wesley.The.Java.Programming.Language.4th.Edition.Aug.2005.chm

    Chapter 3Extending Classesdescribes how an existing class can be extended, or subclassed, to create a new class with additional data and behavior. Chapter 4Interfacesdescribes how to declare ...

    Pro Python 2nd edition 英文pdf

    With this book, make your code do more with introspection and meta-programming. And learn and later use the nuts and bolts of an application, tier-by-tier as a complex case study along the way. This...

    BNM Foundation Classes-开源

    9. Introspection.as:反射或元编程能力的实现,允许程序在运行时检查和修改自身,这对于动态调整应用行为或调试非常有用。 10. Thread.as:线程类,可能包含了线程的基本操作,如启动、暂停、停止和同步等。 总的...

    Python For Dummies, 2nd Edition

    Some of its key distinguishing features include a very clear, readable syntax, strong introspection capabilities, intuitive object orientation, and natural expression of procedural code. Plus, Python...

    利用KVM作为调试平台

    **3. Integration in LibVMI (demo)** LibVMI是一个库,它为不同的虚拟化平台(包括KVM)提供了统一的接口,用于进行虚拟机的内省。将LibVMI与KVM集成,可以方便地在各种环境中实现跨平台的VMI功能。演示可能包括...

    user_oauth:服务器端 OAuth 2.0 “Bearer” 令牌验证

    但是,任何其他支持draft-richer-oauth-introspection OAuth 2.0 AS 都应该可以工作。 要求 PHP 卷曲扩展 Apache(因为我们目前使用apache_request_headers() ) 安装 将此代码安装在您ownCloud 安装的apps目录中的...

    Python 2.4 Quick Reference Card (Letter) (2007).pdf

    Introspection.........................................3 Modules and Packages........................3 Source encodings..................................3 Special Attributes...............................

    Objective-C库

    typed data models that you supply (instead of dictionaries or complicated dataSource protocols), and infers as much information as possible from your models using introspection, to avoid the need for ...

    openbean.jar AndroidStudio 导入java.beans.*

    通过实现`BeanInfo`接口,开发者可以提供自定义的属性、事件和方法描述,以增强默认的 introspection(反射)能力。 2. **PropertyChangeListener** 和 **VetoableChangeListener**: 这两个接口用于监听和处理...

    Pro Python

    * Make your code do more with introspection and metaprogramming. * Design complete frameworks and libraries (two are included in the book!). What you'll learn * Write strong Python code that will be ...

    jekyll-blog:德力润

    Agile Learning based on GitHub issues, KEEP Retrospection and Introspection! 基于 GitHub issues 的敏捷学习,持续行动,持续反思,持续进步… Continuous Progressive Ideology Revolution 谈谈效率:工作与...

    Pro Python电子版

    * Make your code do more with introspection and metaprogramming. * Design complete frameworks and libraries (two are included in the book!). What you'll learn * Write strong Python code that will be ...

Global site tag (gtag.js) - Google Analytics