正如test的手册页指出的,test命令运算表达式参数的值,如果表达式的值是True,就返回零(True)退出值。
As the test man page states, the test command evaluates expression parameters and, if the expression value is True, returns a zero (True) exit value.
记住在这个表达式的两侧使用引号使参数和嵌入空格保持在一起,如清单2后部所示。
Remember to use quotes around this expression to keep parameters with embedded Spaces together as you saw back in Listing 2.
函数表达式将一个函数应用到一个或多个输入参数以创建新的表达式。
Functional expressions apply a function to one or more input arguments to create a new expression.
这两次方法调用的第一个参数是一个正则表达式,用于指定用户可能传入的URL。
The first argument of both of these calls is a regular expression specifying the URL that the customer may pass in.
输入参数本身可以是表达式或文本值。
The input arguments themselves can be expressions or literal values.
运行时执行该查询时,实际的查询表达式是根据传递的参数来生成的,比如当前内容的组件值、当前站点区域,等等。
When this query is performed at runtime, the real query expression is generated depending on the parameter passed, such as component values of current content, current site area, and so on.
同样的基本原理也可以用于构建其他命令的包装,甚至更改参数名称和选项,或者提供等效的表达式。
The same basic principles can be used to build wrappers around other commands, even changing argument names and options, or providing equivalent expressions.
函数表达式的类型取决于函数的性质及其参数的类型。
The functional expression's type depends on the nature of the function and type of its arguments.
当然,有时候您不得不在参数周围加上圆括号,或者表达式没有按照您计划的方式求值,但该原则不仅如此。
Sure, there are times when you have to put parentheses around arguments or an expression doesn't evaluate the way you planned, but there's more to this principle than that.
第一个参数是一个正则表达式,它代表触发客户机从数据库获取XML文档的关键字。
The first parameter is described using a regular expression and represents the keyword triggering the client to retrieve XML documents from the database.
它还支持对添加的文件进行过滤,方法是使用文件的正则表达式模式传递第二个参数,以匹配文件并添加到归档中。
It also supports filtering of the files to add by passing a second parameter with the regular-expression pattern of files to match and add to the archive.
在本例中,仅有一个参数(列表达式),它将是一个字符串。
In the case of this example, you only have one parameter expected - the column expression - which will be one string.
大量UNIX命令使用正则表达式作为参数。
第二个参数是需要转换为语法对象的表达式。
The second parameter is the expression that needs to be converted into a syntax object.
要创建Pattern,必须调用它的compile,同时传递一个正则表达式作为参数。
To create a Pattern, you must call its compile , passing a regular expression as an argument.
因为lambda表达式拥有正确的参数和返回类型,编译器将证实可以把这些类型转换成Comparator,并生成完成此操作的相应代码。
Because the lambda expression has the right argument and return types, the compiler verifies that it can be converted into a Comparator and generates the appropriate code for doing so.
该表达式是对lazy - seq - fibo的一个递归调用,不过这次,它调用的是有两个参数的情况,并向其传递0和1。
That expression is a recursive call to lazy-seq-fibo, but this time, it is calling the two argument case, passing in 0 and 1 to it.
@Pointcut注解允许我们定义切入点表达式,而且必要时,还有被切入点绑定的参数的个数和类型。
The @Pointcut annotation allows us to define pointcut expressions and, where necessary, the number and type of arguments to be bound by the pointcut.
使用类似的表达式来从部分中的actionHTTP参数生成页面标题。(请参阅清单12)。
A similar expression is used to generate the page title from the action HTTP parameter in the section (see Listing 12).
为了避免重复这一过程,XPath提供了一个compile方法,只有一个参数,即字符串XPath表达式。
To avoid duplicating that process, XPath provides a method called compile , which simply takes your string XPath expression as its only argument.
使用基于OLAP的包时,使用值表达式作为tuple函数的参数的报告将生成以下错误消息。
When using OLAP based packages, reports which use value expressions as parameters to the tuple function produce the following error.
对话框中列出来自aa_prompts_map参数映射的仓库目标模型上的所有嵌入式提示表达式。
Listed in the dialog are all the embedded prompt expressions from the warehouse target model from the AA_Prompts_Map parameter map.
这些函数允许传递SQL参数占位符,作为嵌入式XQuery表达式的一个变量。
They allow you to pass SQL parameter markers as a variable into the embedded XQuery expressions.
这些参数的值为XPath表达式,并且可以利用表示输入连接的转换变量。
The values of these parameters are XPath expressions and can make use of transform variables representing the input connections.
新的方式更加复杂,但可以在Aggregation Widgets 下拉列表中得到一个不错的聚合,还为参数和表达式提供了漂亮的文本框。
The new way is a bit more complex, but the result is that you get a nice aggregation in the drop-down list of the Aggregation widget, with nice text boxes for the parameters and expressions.
一般来说,lambda函数接收任何数目的参数,并返回单个表达式的值。
In general, a lambda function is a function that takes any number of arguments and returns the value of a single expression.
首先,为了对类型参数构造合法的new表达式(如 newT() ),必须确保我们调用的构造函数对于 T 的每个实例化都有效。
First off, in order to form a legal new expression on a type parameter, such as new T(), it's necessary to make sure that we're calling a constructor that is valid for every instantiation of T.
注意c:when标签需要test参数,这需要一个XPath表达式。
Notice that the c: when tags require a test parameter, which expects an XPath expression.
将参数传递给XQuery表达式。
注意select参数将使用XPath表达式。
应用推荐