With PHP V5, however, you can build object type checking right into the class or method declaration.
但是,如果使用PHPV5 的话,可以将对象类型检查构建到类或方法声明中。
Note that the advice is a plain method declaration.
请注意通知就是普通的方法声明。
Like a local variable declaration in many languages, a nested method is only visible inside the enclosing method.
就像很多语言中声明局部变量一样,一个嵌套方法尽在方法内部可见。
The return type of the method declaration indicates in what object format the results of the SQL statement will be returned.
方法声明的返回类型表明sql语句的结果返回什么样的对象格式。
If this is the implementation pass, output the complete declaration and method body where appropriate (following).
如果这是实现部分,那么输出完整的声明和适当位置的方法体(下面的部分)。
You can modify the visibility of methods in the same way as properties, adding public, private, or protected to the method declaration.
修改方法可见度的方法与修改属性可见度的方法一样,即在方法声明中添加public、private或protected。
Listing 9. Declaration of the it method.
清单9.it方法的声明。
Listing 4. Declaration of the accept method.
清单4.accept方法的声明。
Another approach is to write a method nested in the tag declaration of an object and assign the event handler to the event attribute of that method.
另一种方法是编写一个方法,将该方法嵌入在对象的标记声明中,并将事件处理程序赋给那个方法的event属性。
You then need to add a method declaration for invoke so that the class compiles.
然后需要为invoke添加方法声明以便类进行编译。
You can create a new submit button on a form and link the button to a method on your Page class using the declaration shown in Listing 2.
可以在表单上创建新的提交按钮并把它链接到page类中的一个方法,使用的声明见清单2。
Implementation hierarchy works the same way in Scala: We can apply final to the method to prevent a child class from overriding it or to the class declaration itself to prevent derivatives.
实现层次结构在Scala中的效果是相同的:我们可以向方法应用final来防止子类覆盖它,也可应用于类声明本身来防止继承。
You must understand how anonymous inner classes work (the inline declaration of the Command subclass) and understand the implications of the execute method.
您必须理解匿名内联类是如何工作的(Command子类的内联声明),并理解execute方法的含义。
Each declaration is actually calling a method named Value that takes a string argument.
每一个声明实际上都调用了一个名为Value的方法,它接受一个字符串参数。
These values are declared at the top of the class declaration, and are initialized in the initialize method.
这些值在类声明顶部声明,并在initialize方法中初始化。
The body of a method declaration is made up of statements, which can be any kind of action (for example: for statement, if statement, or expression).
一个方法声明的程序体是由语句组成的,语句可以是任何类型的行为(例如:for语句、if语句、or表达式)。
In Figure 7, the only legitimate member variables are the ones that appear just above the method declaration, namely @name, @salary, and @hire_year.
在图7 中,合法的成员变量只是在上面方法声明中出现的成员变量,即 @name、@salary 和 @hire_year。
Listing 4 shows the declaration of the accept method from ace/include/SOCK_Acceptor.h.
清单4给出ace/include/SOCK_Acceptor.h 中accept方法的声明。
The dojoAttachEvent declaration will cause the onkeyup events (coming from the input node) to trigger the onKeyUp widget's method calls.
dojoAttachEvent声明会导致onkeyup事件(来自输入节点)触发 onKeyUp小部件的方法调用。
Scala can usually infer the return type of the method (but not the types of the method arguments), so we drop the explicit declaration.
Scala通常可以推断出方法的返回值(但是方法参数的类型就不行了),所以我们不用显式声明。
Move the line that initializes account from the test method to setUp , then delete the declaration and initialization from the other test method. Your test class should now look like Listing 8.
将初始化account的代码从测试方法移到setUp,然后删除其它测试方法中的声明和初始化。
In this case, for every matching method declaration (the finalize method), a result is created where the name is highlighted.
在这种情况下,对于每一个匹配的方法声明来说(finalize方法),被创建的结果的名称都将被突出。
I specify the text output method to avoid getting an XML text declaration in the output. This script, which can be used with any XSLT processor.
我指定文本输出方法,以避免在输出中获得XML文本声明。
For example, you can use this method to get rid of comments, to transform CDATASection nodes into Text nodes, or to discard all the namespace declaration attributes from the tree.
例如,可以使用这个方法去掉注释,将CDATASection节点转换为Text节点,或者放弃树中所有命名空间声明属性。
Don't forget that the startup method is automatically called by the dojo.parser.parse method, in case the widget is being created through a declaration.
别忘了,若小部件通过声明被创建,startup方法是通过dojo . parser . parse方法自动调用的。
In AspectJ, an inter-type method declaration looks almost identical to a normal method declaration and is referred to in the same way.
在AspectJ 中,类型间方法声明看起来就像正常的方法声明,引用的技术也一样。
The declaration begins with the global reference to the Flex application, then a method call that always begins with the string get followed by the ID of the target object.
该声明首先是Flex应用程序的全局引用,然后是始终以字符串get 为开头、后接目标对象ID的方法调用。
This method is particularly useful when processing element-only content (that is, elements declared as EMTPY in the Document Type Declaration, or DTD).
该方法在处理纯元素(即文档类型声明DTD中声明为EMPTY的元素)内容时尤其有用。
Method getPrefix() is a shorthand for getting the namespace attribute's local name (unless it is a default namespace declaration, in which case the prefix is an empty string rather than "xmlns").
方法getPrefix()是获得名称空间属性的本地名的快捷方式(除非是默认名称空间声明,这种情况下前缀是一个空字符串而非 “xmlns”)。
The GenericDeclaration interface defines a single method, which returns the array of TypeVariables included in the declaration.
GenericDeclaration接口定义了一个方法,它返回在声明中包含的TypeVariable 的数组。
应用推荐