However, I find it easier to create the class file first, with some empty methods, and then create the test file.
然而,我发觉首先创建带有一些空方法的类文件,然后生成测试文件是很容易的。
First, there are methods that take an explicit source class name and source method name.
第一种类型的方法包含代表源文件名称及方法名称的参数。
The easiest way to dynamically customize class behavior USES an imperative style: first create the class, then add methods and attributes.
利用强制方式动态自定义类行为最简单的方法是:首先创建类,然后添加方法和属性。
As with the field calls, the first two variants return information for public methods that can be accessed through the class — even those inherited from an ancestor class.
与字段调用一样,前两个变量返回可以通过类接入的公共方法的信息——即使它们来自于祖先类。
Everyone has their own study methods - re-reading (or reading for the first time!) textbook chapters, taking practice quizzes, re-reading one's class notes.
每个人都有自己的学习方法——重读(或者第一次读)课本里的章节,做练习,重读课堂笔记。
First, you must extend the class to add the missing methods. As shown in Listing 8, simply subclass QueryReadStore to CustomQueryStore.
首先,您必须扩展这个类来添加缺少的方法,如清单8所示,只需将子类QueryReadStore添加到Custom QueryStore。
Each of the schedule methods takes an object extending the TimerTask class as its first parameter.
每个schedule方法都采用一个扩展了timertask类的对象作为自己的第一个参数。
First, much of the work done by a concrete class is specified in the docstrings of methods.
首先,具体类所完成的大部分工作都在方法的文档字符串(docstring)中指定。
Eventually it will be replaced by the table class, as explained in the first HC column. This class provides three useful methods.
最终,正如在第一篇HC的专栏文章中所解释的,它会被table类所替代。
For example, the ArrayList class should have been defined with a first and last method, but alas it did not. However, it's easy enough to add those methods in Groovy, as shown in Listing 5.
举例来说,应该使用first和last方法来定义arraylist类,不过并未采用这种方式。
Creating a value object class is the first part of our RMI solution. The second part is the addition of two valuable methods to our remote interface, as shown in Listing 3.
创建值对象类是我们的RMI解决方案的第一个部分。
The first step to improving our data-format validation procedure is to move all the validation logic into a single helper class, from which other methods can invoke it as needed.
改进数据格式验证过程的第一步是将所有的验证逻辑都移至一个助手类中,其它方法可以按需从这个类上调用验证逻辑。
This class should provide different methods to determine which are the previous, next, first, last, and default components.
该类应该提供不同的方法分别确定前一个、后一个、第一个、最后一个组件及缺省组件。
To add new methods to a particular class of type t, it only needs to define static methods that accept type t as the first parameter.
要向类型为t的特定类添加新方法,只需定义一个静态方法,它接受类型T作为第一个参数。
First-class methods and functions (closures)
一流的方法和函数(闭包)
XPath addresses may also be used via the XPath class in REXML, which has methods such as .first(), .each(), and .match().
也可以通过 REXML中的XPath类使用 XPath地址,它具有诸如 .first() 、.each() 和 .match() 这样的方法。
Some solvability conditions of periodic solutions are obtained for a class of first order(superquadratic) non-autonomous Hamiltonian systems in light of the minimax methods of critical point theory.
运用临界点理论中的极小、极大方法得到一类超二次哈密顿系统的周期解的存在性的存在性定理。
Methods Surveys were made according to the university personality inventory (UPI) with a class as a unit after their first two-week formal lectures in the college.
方法采用大学生人格问卷(UPI) ,以班级为单位,在新生正式上课两周以后进行测试。
The first class of regular method is named stationary method which include two methods, truncated singular value decomposition (TSVD) method and truncated total least squares (TTLS) method.
第一类方法称为静态方法,主要包括截断奇异值分解(TSVD)方法和截断完全最小二乘(TTLS)方法。
First we discuss the structural module method to design the virtual battlefield simulators, then use class module method to discuss reusing methods in the distributed virtual battlefield simulators.
文章首先探讨了虚拟仿真器的结构化模块化设计方法,然后采用类模板设计方法研究分布式作战台位仿真器的可重用设计技术。
At first, Aiming at the mental state factor, the writer put forward some simple training methods, Such as reading aloud, class discussion, lecture, 5 minutes' talk training before the class.
首先是针对心理因素提出了一些简易的训练方法,如朗读、课堂讨论、演讲、课前五分钟说话训练。
The first class of methods is available for canonical product of sums form and the second one is available for arbitrary boolean expressions.
第一类方法适用于和之积范式,第二类方法适用于任意布尔表达式。
Or, put more accurately, functions should be treated as first-class citizens within the language: they can be created, passed to methods and returned from methods just as other values are.
或者,更准确地说,功能应视为语言中的一流公民:他们可以创建、传递给方法和方法返回正如其他值。
Or, put more accurately, functions should be treated as first-class citizens within the language: they can be created, passed to methods and returned from methods just as other values are.
或者,更准确地说,功能应视为语言中的一流公民:他们可以创建、传递给方法和方法返回正如其他值。
应用推荐