null object
發(fā)布時(shí)間:2025-08-18 | 來源:互聯(lián)網(wǎng)轉(zhuǎn)載和整理
網(wǎng)絡(luò)虛擬物體; 空物體層; 空對(duì)象; 是空對(duì)象; 空賓語
雙語例句
In Java, it is a common practice to assign a null value to a reference type when it is not referencing any object. 在Java中,當(dāng)引用類型沒有引用任何對(duì)象時(shí)將其賦空值,這是公共的操作。
SDOs can have data object properties that can be any of the simple PHP scalar types: string, integer, float or Boolean, as well as NULL or a reference to another SDO. SDO的數(shù)據(jù)對(duì)象屬性可為任意簡(jiǎn)單PHP標(biāo)量類型:字符串、整型、浮點(diǎn)、布爾,還可以是NULL或另一個(gè)SDO的引用。
The unit test methods first verify that the object provided is not null, and then perform one or more very basic actions on the object. 單元測(cè)試方法首先驗(yàn)證所提供的對(duì)象不是空的,然后對(duì)該對(duì)象執(zhí)行一個(gè)或多個(gè)非?;A(chǔ)的操作。
In Ruby, however, even null is an object. 但是在Ruby中,甚至null也是一個(gè)對(duì)象。
Otherwise, there can be confusion over whether an empty array is a null object, an array with no elements, or an array with a single object containing null or empty values. 否則,可能對(duì)一個(gè)空數(shù)組是null對(duì)象還是沒有任何元素的數(shù)組,亦或帶有一個(gè)對(duì)象且此對(duì)象包含null或空值的數(shù)組產(chǎn)生混淆。
If no comment is associated with a given purchase order object, you might expect this column to be null after persisting the entity. 如果沒有任何注釋與給定訂單對(duì)象相關(guān),那么您可能希望在持久化實(shí)體后將該列設(shè)為null。
If you call Hotel. findByName(" Marriott") and that Hotel doesn't exist in the table, you'll get a null object in return. 如果調(diào)用Hotel.findByName(“Marriott”),并且Hotel不存在表中,就會(huì)返回一個(gè)null對(duì)象。
Listing 3 initializes a new Zend_Soap_Server object in non-WSDL mode, passing a null value as the first argument to the object constructor. 清單3傳遞一個(gè)null值到對(duì)象構(gòu)造函數(shù)的第一個(gè)參數(shù),以非WSDL模式初始化了一個(gè)新的ZendSoapServer對(duì)象。
By design, a newly created JAXB object is "shallow", which means if it contains complex types in its tree structure, these objects are not created and are just null. 根據(jù)定義,新創(chuàng)建的JAXB對(duì)象是“淺對(duì)象”;也就是說,如果它的樹結(jié)構(gòu)中包含復(fù)雜的類型,那么并不創(chuàng)建這些對(duì)象,它們僅僅是null。
When the output is complete, the stream is flushed by writing a NULL object to the client stream and loop awaiting the next client. 輸出完成后,通過向客戶端流寫入一個(gè)NULL對(duì)象,而且循環(huán)等待下一個(gè)客戶端,從而刷新流。
For that effect, JSON defines the following main data structures: number, string, boolean ( true and false), array ( an ordered sequence of values), object ( collection of key value pairs), and null. 為了實(shí)現(xiàn)該目的,JSON定義了以下主要數(shù)據(jù)結(jié)構(gòu):數(shù)字、字符串、布爾值(真或假)、數(shù)組(值的有序排列)、對(duì)象(鍵值對(duì)***)和null。
A code block is simply a block of code that returns a value, and if no value is returned then a NULL object is returned. 代碼塊就是將返回一個(gè)值的一組代碼,如果沒有返回值,那么會(huì)返回一個(gè)NULL對(duì)象。
The sendRequest() function sets the Content-Type header if the body parameter isn't null and calls the send() method of the request object. 如果body參數(shù)不是null,sendRequest()函數(shù)就會(huì)設(shè)置Content-Type頭并調(diào)用request對(duì)象的send()方法。
Bottom line: Any value-binding expression that does not resolve to an object managed by Seam will be null when a method is executed through the Seam Remoting API. 底線是:當(dāng)方法通過SeamRemotingAPI執(zhí)行時(shí),任何不解析成由Seam管理的對(duì)象的值綁定表達(dá)式都將是null的。
It is kept NULL for un-named event object. 對(duì)于無名的事件對(duì)象來說,該值是NULL。
What you get in your arguments are a reference to the "this" object ( this is for object methods and is NULL for plain old functions like bar()) and an argument tuple in args. 您從參數(shù)中得到的是一個(gè)對(duì)“this”對(duì)象的引用(this用于對(duì)象方法,對(duì)類似bar()這樣的無參數(shù)的老式函數(shù)來說是NULL)和一個(gè)存儲(chǔ)在args中的參數(shù)元組。
The cause of null pointers can be varied, but generally it means that either you haven't initialized an object, or you haven't checked the return value of a function. 由于空指針能夠被改變,但通常它意味著你不能初始化一個(gè)對(duì)象或者你不能檢查一個(gè)函數(shù)中的返回值。
Unfortunately, many designers have still not learnt that the special NULL pointer or null object is an equally bad idea. 遺憾的是,許多設(shè)計(jì)者并沒有認(rèn)識(shí)到空指針或空對(duì)象帶來的危害。
This field is NULL when no charmap is selected, which typically happens when you create a new FT_Face object from a font file that doesn't contain a Unicode charmap ( which is rather infrequent today). 當(dāng)沒有字符表被選中時(shí),該字段為NULL。這種情況在你從一個(gè)不含Unicode字符表的字體文件(這種文件現(xiàn)在非常罕見)創(chuàng)建一個(gè)新的FTFace對(duì)象時(shí)發(fā)生。
If it is NULL, the dialog object's parent window is set to the main application window. 如果這個(gè)參數(shù)為空,對(duì)話框?qū)ο蟮母复翱诒辉O(shè)置到應(yīng)用程序主窗口。
When Java sees null, it recognizes that the reference in question isn't pointing to an object. 一旦Java看到null,就知道該句柄并未指向一個(gè)對(duì)象。
A disadvantage of returning null is that it forces a caller to check for null each time an object is obtained from the pool. 返回null的缺點(diǎn)是,它強(qiáng)迫調(diào)用方在每次從池中獲得對(duì)象時(shí)都檢查是否為null。
Acquisition of English null object construction by Chinese learners of English: An interface perspective of discourse, semantics and syntax 中國(guó)英語學(xué)習(xí)者對(duì)英語空賓語結(jié)構(gòu)的習(xí)得&語篇、語義與句法接口的視角
If the app doesn't want to do anything special for this ID, it returns NULL, and the window function senses this and news up the appropriate default object. 如果程序不需要這個(gè)ID,則返回NULL,窗口函數(shù)根據(jù)返回值創(chuàng)建恰當(dāng)?shù)哪J(rèn)對(duì)象。
The second parameter ( state) can either be null or an object containing application-specific information. 第二個(gè)參數(shù)(state)可以為空或者是包含程序規(guī)范信息的對(duì)象。
I will provide a uniform explanation for OSC in this dissertation: V2 ( with its null subject and null object) is essentially a purpose clause modifying the matrix clause. 本文為動(dòng)詞同賓結(jié)構(gòu)提供了一個(gè)統(tǒng)一的解釋:這些句子中的V2(連同其空主語和空賓語)本質(zhì)上是目的性狀語從句。
Genuine VP ellipsis construction rather than null object construction takes place in Chinese due to the strong feature of the light verb. 漢語中存在真正的動(dòng)詞短語省略,而不是空賓語結(jié)構(gòu)(nullobjectconstruction)。這歸功于輕量動(dòng)詞的強(qiáng)特征。
The null subject cannot be an empty pronominal that must observe Generalized Control Rule and the null object cannot be a variable which may change its status of identity in the process of syntactic derivation. 關(guān)系從句中的空主語并不是必須遵守普遍控制原則的空代詞,而空賓語也不是在生成中能改變身份的變項(xiàng)。
But traced back to cognitive motivations, all categories of Null Object are used to fulfill the principle of economy of linguistic expression and cognitive processing. 但追根溯源,從認(rèn)知?jiǎng)訖C(jī)的角度看,賓語省略的各種形式都是為了在語言的使用過程中實(shí)現(xiàn)語言表達(dá)與認(rèn)知處理的經(jīng)濟(jì)性原則。
In Mandarin Chinese, one focus of the researches is on whether the Null Object Construction is a kind of Verb Phrase Ellipsis. 在漢語中,研究的一個(gè)焦點(diǎn)在于空賓結(jié)構(gòu)是否是動(dòng)詞短語省略結(jié)構(gòu)。
上一篇:四月用英語怎么說