规则表达式是一种很简练方法,用于描述可能在文本中出现的模式。
A regular expression is a concise way of describing a pattern that might occur in a text.
坦白地说,XML不是一种多么复杂的语法,因此认为可以自己通过正则表达式或其他特殊方法来解析的想法是可以理解的。
Granted, XML is not a very complex syntax so you can be forgiven for thinking that you can hack your way with regular expressions or other ad-hoc means.
如果一个方法的主体包含多于一个的表达式,你必须用大括号来把它们包起来。
If a method body has more than one expression, you must surround it with curly braces {...}.
OQL查询同样可以调用对象的方法,将正则表达式作为查询的一部分,并使用内置查询工具。
OQL queries can also invoke methods on the objects themselves, use regular expressions as part of the query, and use built-in query tools.
正则表达式是根据文本匹配模式的方法—类似于编译器生成类文件的工作原理。
Regular expressions are ways to match patterns against text — similar to how a compiler works to generate class files.
然而,此过程也再次说明执行同一任务有多种方法,而且有时正则表达式并非总是最佳选择。
Again, however, this procedure also demonstrates that there are multiple ways to do the same task, and sometimes regular expressions aren't always the best option.
它定义了一些用于处理组成我们脚本的多个表达式的方法。
This defines the methods that will be used handle the various expressions that make up our script.
IBMJIT编译器使用一个表达式树序列表示方法的操作。
The IBM JIT compiler USES a sequence of expression trees to represent the method's operations.
定制正则表达式规则的一种简单方法是复制某个规则(例如url规则)的完整规则定义并修改它。
A simple approach to customizing the regular expression rules is to copy the complete rule definition of, for example, the URL rule and modify it.
智能完成任务非常有效,实时过滤成员方法和变量以匹配你输入的表达式。
Smart Completion works at the right-hand side of assignments, filtering the list of methods and variables to match the expected type of expression.
在组件框架中,UI事件或解析的值绑定表达式直接导致方法调用。
In a component framework, invocations are a direct result of either UI events or resolved value-binding expressions.
同时还按顺序回顾了最有意思的代码片段,并论述了两种不同的表达式求值方法。
We reviewed the most interesting code snippets along the way and discussed two different approaches to expression evaluation.
如果整个页的生命,必须动态设置样式属性,使用事件处理程序而不CSS表达式是另一种方法。
If the style property must be set dynamically throughout the life of the page, using event handlers instead of CSS expressions is an alternative approach.
根据SQL标准,评估分层或双向数据的方法为递归通用表表达式(RCTE)。
According to the SQL Standard, the method to evaluate hierarchical or bi-directional data is the Recursive Common Table Expression (RCTE).
第三个值UNKNOWN是一个错误表达式的结果,处理方法与FALSE相同。
A third value, UNKNOWN, is the result of an incorrect expression and has the same behavior as FALSE.
C+ +没有提供查询变量或表达式的类型的简便方法。
C + + has never had an easy mechanism for querying the type of a variable or an expression.
在这个特殊的例子中,方法引用比lambda表达式更清晰地表达了我们的意图,但它们的概念是一样的。
In this particular example, a method reference is a clearer expression of what we mean than a lambda expression, but the idea is the same.
当nose 检查测试类的内部时,它运行与同一正则表达式匹配的方法。
When nose looks inside of a test class, it runs methods matching that same regular expression.
用.Compile()方法去将一个表达式树转换为一个委托,然后你可以执行它。
Use the .Compile() method to turn the expression tree into a delegate so that you can execute it.
函数类型确实是表现lambda表达式类型的一种自然方法,但遗憾的是它们无法与现有语言功能“擦除(erasure)”很好地进行交换。
Function types are indeed the natural way to represent the type of a lambda expression, but unfortunately they interact badly with an existing language "feature" : erasure.
认识到有必要为Web组件指定操作和验证方法后,JSFEL变体添加了一个允许在属性内使用方法表达式的特性。
Recognizing the need to specify action and validation methods for a Web component, the JSF EL variant added another feature allowing you to use method expressions within an attribute.
这说明,该函数必须在一个涉及比较操作并且引用了索引扩展hash _ index的搜索方法“equals”的表达式中使用。
It says that the function must be used in an expression involving the comparison operation and that the search method "equals" of the index extension hash_index is referred to.
MetaLinq并不是唯一对表达式树进行编辑的方法。
因此,SPOT程序不能访问文件流;没有反射,没有串行化,没有本地方法,没有正则表达式,没有Swing,只有有限的数据类型。
Therefore, SPOT programs don't have access to file streams; there's no reflection, no serialisation, no classloading, no native methods, no regular expressions, no Swing, and only limited data types.
您可能会认为,可以将逻辑放在映射到视图中值绑定表达式的backingbean的getter方法中。
You might assume that you can stick the logic inside the getter method of the backing bean that maps to the value binding expression in the view.
在这种情况下,可以通过使用正则表达式或者String . Replace方法将每个单引号实例替换为两个单引号,使单引号无害。
In such cases, you can render the single quote harmless by using a regular expression or the String.Replace method to replace each instance of the single quote with two single quotes. For example.
首先介绍一种使用Facelets表达式语言(el)函数进行国际化的简便方法。
For starters, I show you a pain-free way to do Internationalization using a Facelets expression language (el) function.
返回查询表达式的两个方法都返回QueryExpression对象。
Both of the methods that return query expressions will return a QueryExpression object to you.
XPathExpression对象通过将XPath表达式的String表示传递给XPath的编译方法来创建。
XPathExpression objects are created by passing a String representation of the XPath expression into the compile method on XPath.
XPathExpression对象通过将XPath表达式的String表示传递给XPath的编译方法来创建。
XPathExpression objects are created by passing a String representation of the XPath expression into the compile method on XPath.
应用推荐