缩进几乎是代码编写规范的第一课,是代码可阅读性判断的直接因素。
互联网摘选
start by stubbing out a class called gstorageuploadservlet based on the code in listing 25
首先,我们要基于清单25的代码创建一个名为GStorageUploadServlet的类
互联网摘选
当我们查看编译器代码时我们会看到,行号信息已经被加到了产生的class文件中了。
互联网摘选
基于用二阶多项式表示的基本谱密度函数,提出直扩码分多址(DS-CDMA)系统中一类带限码片波形&二阶连续脉冲。
互联网摘选
你可以这样生成跟踪信息日志文件,在你的代码中直接调用Debug类的方法来记录跟踪信息并输出到日志文件中。
互联网摘选
加载该页面后,将对原始HTML代码进行预处理,其中包括设置节点的类属性以及其他操作。
互联网摘选
in this code, the internaltimezone variable represents a private instance of the timezone class
在该代码中,internalTimeZone变量表示TimeZone类的专用实例
互联网摘选
如果要使用自顶向下的方法,请确保生成的骨架只是到另一个类的过渡。
互联网摘选
the code registers the module with the class name and the module name of helloworldmodule.
这段代码用HelloWorldModule的类名和模块名注册该模块。
互联网摘选
因为只生成了框架代码,接下来必须为每个类提供具体的实现代码。
互联网摘选
the code for the translation class needs to be augmented to handle contextual information.
Translation类的代码需要扩展成处理上下文信息。
互联网摘选
describe方法提供了RSpec描述,您将传入测试类的名称和包含实际规范的代码块。
互联网摘选
您的类向客户端代码公开的数据应通过方法、属性和索引器提供。
互联网摘选
indexers are read-write in code and the class details window, but the indexer name is read-only.
索引器在代码中和“类详细信息”窗口中是读写的,但索引器名称是只读的。
互联网摘选
以下代码片段说明如何使用该类的完全限定名声明变量
互联网摘选
在派生类中重写时,获取与当前编码最紧密对应的Windows操作系统代码页。
互联网摘选
完全限定名包括含有此代码元素和代码元素名称的类的名称。
互联网摘选
以下是Editorapplet类的开头,它包括了您之前创建的代码
互联网摘选
a script can now use this widget class by including code similar to the following
脚本可按照如下代码使用小窗口类
互联网摘选