Those repetitions make the application prone to minor errors (e.g., a mis-spelled class name would show up as an hard-to-debug error at runtime).
这些重复使应用易于出错(例如,一个拼写错误的类名可能在运行时显示为一个难于调试错误)。
To solve this problem, create a separate class for each variable you need to save, naming the class as the variable name you need to reference in subsequent tests.
为了解决这个问题,为您需要保存的每一个变量创建一个单独的类,给类命的名要参考在随后的测试中您需要应用的变量名。
In each case, we avoid doing ugly hacks, such as prefixing the name of the function or class to make the name unique.
在任何情况下,我们应避免执行不恰当的修改,比如将函数名或类名作为前缀以生成独特的名称。
As noted earlier, if a class name begins with an underscore, it has no corresponding XML tag.
正如前面提到的,如果类名以一个下划线开始,那么它就没有相对应的XML标记。
As each anonymous class has a unique name there are no issues loading it and as a result the application is updated on-the-fly.
因为每个匿名类都有一个唯一的名称,因此在加载该类是不会有问题的,而这样做的结果是,应用被实时动态地更新了。
In that article, we just passed the class and method name as command-line parameters to my program, which loaded the binary class file, added the timing code, then wrote the class back out.
在该文中,我们只是将类和方法名称作为参数传递给程序,程序加载二进制类文件,添加定时代码,然后写回该类。
When one of these methods is invoked, the class whose name is specified as an argument is loaded by the class loader.
当调用其中一个方法的时候,指定的类(以类名为参数)由类装入器装入。
A generic sequence diagram contains only a class name in each box along the horizontal axis, as seen in Figure 1.
常规序列图在水平轴方向上的每个框中只包含一个类名,如图1所示。
By default, a top-level class is generated into a file with the same name as itself.
默认情况下,顶级类将生成一个与类名相同名称的文件。
A UML operation representing a constructor is given the same name as its parent class or structure name.
表示构造方法的UML操作有和其母体类或结构名相同的名字。
The class name can contain any combination of letters and Numbers, as well as the underscore character, but cannot begin with a number.
类名可以包含字母、数字和下划线字符的任何组合,但不能以数字打头。
These variables are called class variables and, as their name suggests, are defined at the level of the class rather than at the level of a method.
这种变量被称为类变量,顾名思义,该类型的变量在类的级别定义而非方法的级别。
You could optionally specify the name of the table for the class, or implement the convention where you use the same name as the class.
可以选择指定类的表名,或者在使用与类相同的名称时实现约定。
Putting the class name as a prefix to the method name indicates that the method is a class method.
将类名作为方法名的前缀来指示该方法是类的方法。
Whereas the singleton implementation uses the subclass's class name, other patterns (such as active record, covered later) need to reference other static properties.
尽管单例实现使用的是子类的类名,其他的模式(比如稍后介绍的活动记录模式)需要引用其他的静态属性。
In PHP V4, you create a constructor by declaring a method with the same name as that of the class.
在PHPV 4中,通过声明与类同名的方法来创建构造函数。
As the name implies, this class is an XML filter that extends SAX XMLFilterImpl.
就如这个名称所暗示的,这个类是一个扩展SAX XMLFilterImpl的XML过滤器。
The ScaTestExecutor constructor takes the test class and the name of the test as parameters.
ScaTestExecutor构造函数将测试类和测试的名称作为参数。
Thus, n1 is appropriate as the name of a variable, and HelloProgram is appropriate as the name of a class.
因此,n1比较合适用来作为变量的名字,而HelloProgram就适合用作类的名字。
To begin, add a name field to the Hotel class you created earlier, as shown in Listing 10.
首先,向先前创建的hotel类中添加一个名称字段,如清单10所示。
As you might have guessed, the class name refers to the actual class that defines the rule.
正如您所猜到的一样,class name参考了定义规则的实际类。
You can give it a name (that is, a class name), specify parameters (as in a constructor), and even use the .this keyword, which basically means referencing a variable within the scope of the function.
可以给其一个名称(也就是一个类名),指定参数(和在构造函数中一样),甚至可以使用关键字 .this,这意味着在函数范围内引用变量。
In Listing 8, the Resource element contained the name of the class that ACTS as an entry point into the application model.
在清单8中,Resource元素包含一个类名,该类充当进入应用程序模型的入口点。
This class takes a name as a parameter and returns the name with Hello tacked onto the beginning of the name.
上面这个类接收一个作为参数的name,在 name 的前面加上Hello,然后返回这个 name。
Another useful addition is the SplFixedArray class, which, as the name implies, is a fixed-size array implementation.
另一个有用的补充是splfixedarray类,顾名思义,这是一个固定大小的数组实现。
The class One2OneChannel, as the name indicates, implements a "single-writer-single-reader" type channel.
类One2OneChannel,顾名思义,实现了“单一写入器/单一阅读器”类型的通道。
Rather than use IDs, you could use a class name or as is commonly used in lightbox scripts, the rel attribute (see Listing 10).
不要使用IDs,而是使用一个类名;或者使用rel属性(见清单10),就像lightbox脚本中常用的那样。
To access an Individual from the database, simply specify the class name in your HQL query, as shown in Listing 5.
要想访问数据库中的Individual,只需在HQL查询中指定类名即可,如清单5所示。
The purpose of the AuthServlet class, as its name suggests, is to ensure that the user is authenticated before the request is redirected to the action class.
顾名思义,authservlet类的目的是在将请求重定向到action类之前确保用户通过身份验证。
A stereotype allows you to attach a new meaning to a UMl foundation class, such as class, and it is represented on a UMl diagram as a name surrounded by double brackets .
构造型允许您为uml基础类(如Class)附加新的意义,构造型在uml图上表示为一个由双尖括号括起来的名称。
应用推荐