• As with properties, any attempt to call a private method from outside the containing class causes a fatal error.

    与属性一样,尝试从包含类外部调用私有方法将导致致命错误。

    youdao

  • The reality is that the main() method simply executes a private method, go(), on an instantiated AtomToRdf class.

    实际情况是main()方法只是在一个实例化的AtomToRdf 类上执行了一个私有方法go()。

    youdao

  • If you do not want a particular method to be exposed, change it to a Private method by adding the Private qualifier before the function.

    如果不希望公开特定的方法,则将它更改为Private Method,方法是在函数之前添加private限定符。

    youdao

  • The populate method is much shorter now, and it reads like an outline of the tasks it needs to perform, with the task implementation residing in private methods.

    populate方法现在短多了,看起来像是它需要执行的任务的大纲,任务的实现都放在私有方法中。

    youdao

  • Note that the invoke() method is overridden to either take an Object instance, as in Listing 4, or a Class, in the case that the desired private method is also static.

    请注意invoke()方法被覆盖成可以接受一个Object实例(如清单4 所示)或一个Class(这时期望的private 方法也是 static 的)。

    youdao

  • A subtle but important difference between auth and list is that list is a closure, whereas auth is a private method. (Closures use an equals sign in the definition; methods use parentheses.)

    auth和list之间微妙但重要的一点区别是list是一个闭包,而auth是一个私有方法(闭包在定义中使用等号;方法使用圆括号)。

    youdao

  • The city list is retrieved from the NWS using a private method if the NWS is online and from a file if the NWS is not online, and the method caches state and city information to improve performance.

    在NWS在线的情况下使用私有方法来从 NWS检索城市列表,在 NWS不在线的情况下从文件中检索城市列表,该方法把州和城市信息存在高速缓存中以提高性能。

    youdao

  • If somebody wanted to keep a bit of information private, he encrypted the data with a password, a pass phrase, or another basic method.

    如果某人想保持少量私有信息,那么他必须使用密码、密码短语或其他基本方法对数据进行加密。

    youdao

  • Thus, it is crucial to establish a method to generate valid, reliable and comparable information on private health spending.

    因此找到一种可以获取有效、可靠和可比的私人健康开支信息的方法至关重要。

    youdao

  • It is legal to get method infos of methods that are not accessible; metadata is always public even if it describes private details.

    获得方法的方法信息是合法的;元数据总是公共的,即使它描述了私有详情。

    youdao

  • Set the download method to Private, and be sure to set the file system path to a location that is not inside the directory /var/www/htdocs.

    将下载方法设置为Private,并将文件系统路径设置为不在目录 /var/www/htdocs 中的位置。

    youdao

  • Extension Methods - Sometimes you want to take a private helper method and reuse it elsewhere.

    扩展方法—有时候你会想要在任何地方都能重用某个私有的helper方法。

    youdao

  • In the commit method of the login module, a privileged code clears up the current subject and replaces the principals, and the public and private credentials.

    在登录模块的commit方法中,可以使用特权代码清除当前主题并替换相应的主体、公开的和私有的凭据。

    youdao

  • The ReleaseObject method internally uses a private ReturnToPool method to restock the pool with the given object, shown in Figure 5 .

    ReleaseObject方法在内部使用私有的ReturnToPool 方法,用给定对象重新填充该池,如图5 所示。

    youdao

  • Create an "Identification Credential" to relate the public and private key [this is the preferred method, and we will use this method for this use case].

    创建一个“IdentificationCredential”来关联公共密匙和私有密匙(这是首选方法,我们将对这个用例使用这种方法)。

    youdao

  • The main method then calls the following private static methods in turn, passing in either the UDDI4J proxy or the Publish instance, as appropriate.

    接着,main方法依次调用下列私有静态方法(必要时在UDDI4Jproxy或者Publish实例中传递)。

    youdao

  • This method accepts an EventQuery object, which is configured with various parameters: the user name, the type of feed (public or private) and the level of detail required in the feed (full or basic).

    该方法接受一个EventQuery对象,配置了多个参数:用户名、提要类型(公共或私有)以及提要的详细程度(完整还是基本)。

    youdao

  • A dialog box displays, requesting the name and visibility (public, private, protected, or default) of the new method.

    这时会出现一个对话框,要求输入这个新方法的名称及可见性(公开的、私有的、保护的或是默认的)。

    youdao

  • Note that Zope uses an odd convention to determine which methods are accessible via the Web -- if a method has a doc string, it is Web accessible; otherwise, it's considered private.

    请注意Zope采用一种奇怪的约定来确定哪些方法可以通过Web访问 ―如果一个方法包含有一个doc字符串,那么该方法可通过 Web 访问;否则,就被认为是私有的。

    youdao

  • 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。

    youdao

  • Initially when writing code, I don't worry too much about categorizing method visibility as default (package), private, public, or protected.

    最初在编写代码时,我没有过多地担心将方法可视性归为default(包)、private、public还是protected。

    youdao

  • These two functions are both declared private static, which enables you to call them from within your main method but not from other classes.

    这两个函数都声明为privatestatic,因此可以从main方法中调用它们,但是不能从其他类调用。

    youdao

  • Now, the items array can be private because the descendant classes use the protected add method to add configuration items to the list.

    现在,项阵列可以是private的,因为子类使用受保护的add方法将配置项添加到列表中。

    youdao

  • visibility shows field and method modifiers: public, protected, private, or default.

    visibility展示字段和方法修改语:public、protected、private或default。

    youdao

  • It turns out there is another option as well: leave the method as declared (that is, private) and use the nifty JUnit-addons project to test it.

    还有另一个选择:保留方法现有的声明不变(即private),并采用优秀的JUnit插件项目来测试它。

    youdao

  • Using a private field and annotating the setter method is considered a best practice.

    使用私有字段并注释setter方法被视为最佳做法。

    youdao

  • After you add a ServiceListener, you call your private login method as shown in listing 4.

    添加了ServiceListener后,将调用privatelogin方法,如清单4所示。

    youdao

  • So as you can see, my first step would be to drop the private modifier and replace it with def, which is the same as declaring the method as public.

    可以看出,第一步是去掉private修饰符,用def替换它,这与将方法声明为public是一样的。

    youdao

  • The string is saved in a private variable so we have access to the string when the enumerator calls the matches() method to create the result set.

    这个字符串被保存在私有变量中,这样当枚举器调用matches()方法创建结果集的时候就可以访问这个字符串。

    youdao

  • The string is saved in a private variable so we have access to the string when the enumerator calls the matches() method to create the result set.

    这个字符串被保存在私有变量中,这样当枚举器调用matches()方法创建结果集的时候就可以访问这个字符串。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定