The API method implementations are defined in the controller class as public instance methods.
API方法实现是作为公共实例方法定义在控制器类中的。
Implement the API methods in the controller class as public instance methods.
在控制器类中实现作为公共实例方法的API方法。
Implement the API methods in the service class as public instance methods.
在服务类中实现作为公共实例方法的API方法。
With the direct dispatching approach, the API definition class is attached to the controller class, and the API methods are implemented in the controller class as public instance methods.
通过直接调度方法,可以把API定义类与控制器类绑定在一起,并且在控制器类中实现作为公共实例方法的API方法。
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.
与字段调用一样,前两个变量返回可以通过类接入的公共方法的信息——即使它们来自于祖先类。
Finally, the convention requires the methods to be public, so I use the form of lookup that finds public methods callable on the class.
最后,该惯例要求方法为公共,因此我使用查找格式,查找类上可调用的公共方法。
Notice that you're never required to register all the public properties or methods of the class — you can choose which ones you want to expose to the container.
注意,不必要注册类的全部公共属性和方法——可以从中选择想向容器公开的那些公共属性和方法。
For example, say that you want to display all of the public methods of a given class using reflection. Listing 7 shows an example.
例如,假设您希望利用反射显示给定类的所有公共方法。
The interface class is the one with Public methods that Web service clients can call.
接口类就是具有Public方法的类,Web服务客户机可以调用 Public 方法。
Our ACL class in Listing 8a features a public constructor accepting the securedResource, the ACLHolder that the ACL protects, and utility methods that operate on the ACL's internal grants structure.
清单8a 中的ACL类提供了一个公共构造函数,用于接收securedResource,即 ACL保护的ACLHolder;还提供了实用方法,对 ACL的内部授权结构进行操作。
A well-designed CherryPy class will probably have only a few public methods exposed to Web clients, but it may have many internal methods a client shouldn't be allowed to access directly.
一个设计良好的CherryPy类可能只有少数几个公有的方法暴露给Web客户机,但是它很可能有许多不允许客户机直接访问的内部方法。
The sample service resides in a class named GetUserInfo that includes the following public methods.
示例的服务位于一个名为GetUserInfo的类,它包括以下公有方法。
In other words, it's the class in the Web service code with public methods that users can access.
换句话说,它就是Web服务代码中带有用户可访问的public方法的类。
The following utility methods are public static members of the com.ibm.wac.AccessibleUtils class.
下列实用程序方法是com .ibm . wac . AccessibleUtils类的publicstatic成员。
That's why the Vehicle class, and its subclasses, have either private or protected fields, and public setter and getter methods to provide access.
这也正是Vehicle类及其子类都具有 private或者protected属性,而用publicsetter和getter方法来访问属性的原因。
PMD currently defines close to 200 rules with specific ones for method length, class length, unique types, and counting public methods.
PMD目前定义了大约200个规则,其中一些特定规则是针对方法长度、类长度和惟一类型的,还有一些用于计算public方法。
The class should be public, and the fields should be private with a corresponding set of public getter and setter methods. Listing 8 shows a typical Java pojo.
类应当为public,并且字段应当为带有一组对应的publicgetter和setter方法的private。
As for the public methods in our BookSearch class, the code for these methods is as follows.
与booksearch类中的公共方法类似,这些方法的代码如下。
While in Break mode, however, you are generally not allowed to change declaration statements, such as public methods, public fields, or class declarations.
但是,在中断模式下一般不允许对声明语句(如公共方法、公共字段或类声明)进行更改。
If the class declares multiple public member methods with the same parameter types, they are all included in the returned array.
如果该类使用相同的参数类型声明了多个公共成员方法,返回数组中都会包括。
It's an abstract class with public abstract methods all of which must be implemented in the inherited classes.
能够实现允许某个类被继承,但不允许其中的某个方法被覆写么?
It's an abstract class with public abstract methods all of which must be implemented in the inherited classes.
能够实现允许某个类被继承,但不允许其中的某个方法被覆写么?
应用推荐