在默认源代码中使用类路径的地方,可以用查询类文件的其他路径或者其他访问类信息的方法替换。
You can substitute other paths for looking up class files, or other ways of accessing class information, in place of the default source that USES the classpath.
对于我来说唯一有意义的事情是识别什么时候一个方法开始衰减,并用一个没有衰减的方法替换它。
The only thing that makes sense to me is to identify when a method is starting to decay and replace it with one that isn't.
只要用要调用的方法替换 classname_function ,并用方法应该操作的对象指针替换object 。
Simply replace classname_function with the method to be called, and replace object with the object pointer upon which the method should operate.
将分析方法的内容替换为如代码清单6所示的代码片段。
Replace the contents of the analyze method with the code snippet in Listing 6.
当您在实施一个界面时,您的方法必须替换界面的所有方法。
When implementing an interface, your method must override all methods of the interface.
如果可以在不串行化的情况下将数据返回到客户机,那么,通过直接绑定到一个XML输出主机变量,这是避免任何替换字符的最安全的方法。
If it is possible to return the data to the client without serialization, by binding directly to an XML output host variable, this is the safest way to avoid any kind of substitution character.
有时候,系统管理员希望实施不同的安全策略,这时就可能需要修改或替换身份验证方法。
At times, the authentication methodologies may need modification or replacement when system administrators want to enforce different security policies.
下面讨论避免这两种替换字符陷阱的方法。
Ways to avoid both of these substitution character pitfalls are discussed below.
为此,要把方法签名中的值对象替换成接口。
You do this by replacing the value objects in the method signatures with interfaces.
相关扩展包括替换命令和针对不同进程重定向信息的更好方法。
Extensions include better ways of substituting commands and redirecting information in and out to different processes.
SPARQL是另一种查询方法,不一定要立即替换SQL。
SPARQL is an additional method of querying, not necessarily an immediate replacement of SQL.
扩展和限制是替换的两个有效方法。但是,根据XML模式规范,联合并不是有效的派生技术(参阅参考资料)。
Extension and restriction are both valid methods for a substitution; however, union is not a valid derivation technique according to the XML Schema specification (see Resources).
然后它用含有对经过重命名的原方法的调用的计时代码替换拷贝方法的正文。
It then replaces the body of the copied method with timing code wrapping a call to the renamed original method.
本文将寻找避免替换字符的方法。
This article looks at ways of avoiding substitution characters.
最简单的方法是用SSD替换所有常规硬盘驱动器并移动所有对象和数据。
The easiest approach would be simply to replace all regular disk drives with SSDs and move over all objects and data.
当跟随文件模式位的字符是空格时,就表示没有替换访问方法。
When the character following the file mode bits is a space, there is no alternate access method.
既然指出了执行一项任务几乎总是有更简单的方法,现在就说明用兔子图片替换帽子图片的简单得多的办法。
Since I've pointed out that there is almost always an easier way to perform a task, I'll now show you that there's a much easier way to replace the top hat image with the rabbit image.
无线传感器需要能量才能工作,同时还需要对电池的维护,经济可承受的电池替换以及安全的电池处理方法。
Wireless sensors require energy to operate, and battery maintenance, economic battery replacement, and safe battery disposal are barriers.
通过重载这个方法,您可以替换在lookandfeel中用到的任何标准图像。
Overloading this method allows you to replace any standard image used in the look and feel.
当然,在替换一个单个字母时,Groovy提供了一个更加简洁的替换方法。
Of course in the case of replacing a single letter, Groovy offers a more concise replace method.
如果您正在创建定制布局,那么需要在调用 super.updateDisplayList() 之后覆盖该方法,然后替换为希望使用的逻辑。
You need to override this method after calling super.updateDisplayList() if you're creating a custom layout, and then substitute the desired logic.
此helper方法只替换具有应用程序路径值的字符串中的所有~实例。
This helper method simply replaces any instances of ~ in the string with the value of the application's path.
ServletRequestAttributeListener中包含的方法在添加、删除或替换某个请求对象的属性时获得控制权。
ServletRequestAttributeListener, which contains methods that gain control whenever an attribute of the request object is added, deleted, or replaced.
找到匹配后,就用使用实际的TranslateEditor应用程序类中reverse方法调用的结果来替换原来的存储。
When I find a match, I replace the original store with one that USES the result of a call to the reverse method within the actual TranslateEditor application class.
注意我们传递给这个方法两个参数:我们想要替换的值(Scriptign)及用来替换的文本(Scripting)。
Note that we pass this method two parameters: the value we want to replace (Scriptign) and the replacement text (Scripting). After we run this command $a will be equal to this
可以看出,第一步是去掉private修饰符,用def替换它,这与将方法声明为public是一样的。
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.
为了演示这个框架的使用方法,我把main 替换为清单 2中的代码,从而重新对 清单1 中的代码进行基准测试
As a quick application of the framework, I'll rebenchmark the code in Listing 1 by replacing main with the code in Listing 2
使用以下代码替换生成的方法
Groovy的GString允许您对替换的值调用autocall方法,当开始构建动态文本时,这会产生很多变化。
Groovy's GStrings allow you to autocall methods on substituted values, which opens up a wide variety of possibilities when it comes to building dynamic text.
例如,PHP有一个bind _ param方法可以用来正确地替换用户数据。
For example, PHP has a bind_param method for correctly substituting user data.
应用推荐