你可以在方法主体只有一个表达式的时候省略大括号。
You can omit the braces if the method body has just one expression.
我们可以在这编写一个表达式来匹配许多类的方法的集合。
We could write an expression here that matched a set of methods, on many classes.
规则表达式是一种很简练方法,用于描述可能在文本中出现的模式。
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.
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.
在命令行中,可以采用许多方法使用正则表达式。
At the command line, you'll find many ways to use regular expressions.
它定义了一些用于处理组成我们脚本的多个表达式的方法。
This defines the methods that will be used handle the various expressions that make up our script.
正则表达式是执行此操作的更好方法。
Regular expressions are a much better means of performing this operation.
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.
在组件框架中,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.
也可以建立布尔表达式以调用方法。
You can also set up the Boolean expression to call a method.
根据SQL标准,评估分层或双向数据的方法为递归通用表表达式(RCTE)。
According to the SQL Standard, the method to evaluate hierarchical or bi-directional data is the Recursive Common Table Expression (RCTE).
这个小示例使用最简单的方法:正则表达式。
This small example USES the simplest thing that could possibly work: regular expressions.
第三个值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.
当nose 检查测试类的内部时,它运行与同一正则表达式匹配的方法。
When nose looks inside of a test class, it runs methods matching that same regular expression.
认识到有必要为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.
这些参数传递到表达式对象的invoke方法。
These parameters are passed to the invoke method of the expression object.
如果输入文本与正则表达式匹配,则该方法返回true。
If the input text matches the regular expression, what this method returns is true.
MetaLinq并不是唯一对表达式树进行编辑的方法。
可以使用evaluate方法计算表达式。
您可能会认为,可以将逻辑放在映射到视图中值绑定表达式的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.
返回查询表达式的两个方法都返回QueryExpression对象。
Both of the methods that return query expressions will return a QueryExpression object to you.
XPath和XPathExpression都提供了4种不同的方法计算XPath表达式,是通过重载evaluate实现的。
Both XPath and XPathExpression offer four different methods for evaluating an XPath expression, which are provided as different overloadings of a method called evaluate.
XPath和XPathExpression都提供了4种不同的方法计算XPath表达式,是通过重载evaluate实现的。
Both XPath and XPathExpression offer four different methods for evaluating an XPath expression, which are provided as different overloadings of a method called evaluate.
应用推荐