请注意通知就是普通的方法声明。
为方法声明创建一个规则。
首先看一下方法声明。
此处,您只关心那些只有一条语句的方法声明。
Here, you care only about method declarations with a single statement.
可以将特性应用于任何方法声明。
把方法声明成public。
有两种方法声明JSP页面与其库之间的引用。
There are two ways to declare a reference between a JSP page and its library.
可以从方法声明或方法调用中移除参数。
You can remove parameters from a method declaration or a method call.
然后需要为invoke添加方法声明以便类进行编译。
You then need to add a method declaration for invoke so that the class compiles.
“文件名”仅列出了包含分部方法声明的文件。
File Name lists only the file that contains the partial method declaration.
否则,该属性会影响所有随后的方法声明,因为标记仍然为真。
Otherwise, this attribute will affect all subsequent method declarations because the flag would remain true.
action={string}此方法声明对多个任务实例的责任。
Use this method to claim responsibility for multiple task instances.
把方法声明成protected,并把测试用例放在同一个包中。
Make the method protected and put the test case in the same package.
此业务异常就是方法签名声明的唯一异常。
This business exception is the only one declared by the method signature.
所有变量都是在方法上方声明的。
方法内部声明的变量叫做局部变量。
Variables declared within a method are said to be local variables.
该隐私权声明揭示了我们将收集哪些收集以及信息使用方法。
This privacy statement discloses what information we gather and how we use it.
哪些公共方法能够被声明为private ?
在这个具体的例子中,您声明:标注的方法属于tests . string组。
In this particular case, you declare that the annotated method belongs to the tests.string group.
在BP 4action中将方法perform声明为final。
清单4.accept方法的声明。
evaluate方法被声明为返回object。
清单4给出ace/include/SOCK_Acceptor.h 中accept方法的声明。
Listing 4 shows the declaration of the accept method from ace/include/SOCK_Acceptor.h.
lone方法被声明为public,因此可以供其他类访问。
The lone method is declared as public, so it will be available to other classes.
声明包装方法(本例为compare)也抛出IOException。
Declare that the enclosing method, compare in this example, also throws IOException.
在BP 2action类中,将方法perform声明为final。
声明为方法的第二个参数,类型为long。
简单地说,方法是在类中声明的函数。
注意,在这个方法上,以及任何其他方法上,不需要声明返回类型。
Notice that on this method, as well as all of the others, you do not need to declare a return type.
这在API被声明为抽象方法时尤其重要。
This is especially important when APIs declare abstract methods see, e.g.
应用推荐