因?yàn)?/c>讀寫方法是簡(jiǎn)單的Java成員函數(shù),所以明智地選擇讀寫方法的可視性是很重要的。
Event accessors are methods you define to allow event delegate instances to be added or removed from the storage data structure.
事件訪問器是您定義的方法,用以允許事件委托實(shí)例添加到存儲(chǔ)數(shù)據(jù)結(jié)構(gòu)或從存儲(chǔ)數(shù)據(jù)結(jié)構(gòu)移除。
Thus, the purpose of the accessors is to indicate whether the property is read-write, read-only, or write-only.
因此,訪問器的用途是指示屬性是否為讀寫、只讀或只寫。
It has fields corresponding to the database columns and the usual accessors (getters and setters) for each field.
它有與數(shù)據(jù)庫(kù)列對(duì)應(yīng)的字段及用于每個(gè)字段的常用存取器(getter和setter)。
Models should be relatively cheap to instantiate, with shallow accessors provided for any data used by the view.
模型應(yīng)該易于實(shí)例化,并為視圖使用的任何數(shù)據(jù)提供基本的訪問方法。
It contains accessors for properties and a validation method.
它包含屬性訪問程序和一個(gè)驗(yàn)證方法。
The event property accessors use the predefined key for the event property to add and remove instances from the delegate collection.
事件屬性訪問器使用事件屬性的預(yù)定義鍵在委托集合中添加和從委托集合中移除實(shí)例。
You do not typically need to provide your own custom event accessors.
通常不需要提供自己的自定義事件訪問器。
Properties with these illegal accessors tend to be ignored when mapping a bean to WSDL.
在將一個(gè)Bean映射到WSDL時(shí),帶有這些非法訪問器的屬性往往被忽略。
Like the boolean getProperty, non-camelcase accessors are not legal and are not recognized as accessors.
同布爾型getProperty一樣,非camelcase訪問器是不合法的,并且不能作為訪問器被識(shí)別。
Another (much misunderstood) setting also affects the reflection accessors.
另一種(極易造成誤解的)設(shè)置也會(huì)影響反射存取器。
In this bean class most of the methods, other than the EJB call back methods, are accessors and setters for the above properties.
在這個(gè)bean類中,大多數(shù)方法(EJB回調(diào)方法除外)都是上述屬性的accessor和setter。
Because creating the bytecode accessors is quite slow, the Java runtime can cache these accessors for later use.
由于創(chuàng)建字節(jié)碼訪問程序相當(dāng)慢,因此Java運(yùn)行時(shí)可以緩存這些訪問程序供稍后使用。
At its bare minimum you can write pure Ruby classes with attribute accessors and create the usual Hibernate mapping files by hand.
在最簡(jiǎn)單的情況下,你可以編寫只帶屬性訪問器的純粹Ruby類,然后手動(dòng)創(chuàng)建出常見的Hibernate映射文件。
Event properties consist of event declarations accompanied by event accessors.
事件屬性由帶事件訪問器的事件聲明組成。
As accessors can be overloaded, the string and integer versions can co-exist.
由于訪問器可被重載,字符串和整數(shù)版本可以共存。
These properties will be the public accessors for the style properties.
這些屬性將會(huì)是樣式屬性的公用存取子。
The accessors read directly from, or write to, the respective positions in the state document model.
訪問器直接對(duì)狀態(tài)文檔模型中的各個(gè)位置進(jìn)行讀寫。
After the fields and their accessors are declared, the methods of the Employee class come next.
字段及其訪問器聲明之后,下面出現(xiàn)的是Employee類的方法。
A non-abstract class derived from an abstract class must include actual implementations of all inherited abstract methods and accessors.
衍生自抽象類別的非抽象類別必須包含所有繼承抽象方法和存取子的實(shí)作。
Accessors (member functions that directly manipulate the value of fields) were introduced in "Accessors increase robustness of Java code. "
“AccessorsincreaserobustnessofJavacode”中引入了訪問(讀寫)方法(直接操縱字段值的成員函數(shù))。
The control data accessors used in the methods are defined in next step.
這些方法中使用的控制數(shù)據(jù)訪問器在下一步中定義。
A class, even though you have to do all the work writing in the member variables and accessors, is explicit.
而使用類的話——即使你不得不重寫所有成員變量及其訪問函數(shù)——一切就變得明確起來。
You then use standard accessors to "inject" references to the objects your classes depend on.
然后用標(biāo)準(zhǔn)訪問器將引用“注入”到類所依賴的對(duì)象中。
As with accessors, the specified callbacks are invoked whenever a property is accessed.
像訪問器一樣,當(dāng)一個(gè)屬性被訪問時(shí)指定的回調(diào)函數(shù)就會(huì)被激活。
Formally, Scala calls numer and denom methods without parameters, which are used to create a quick-and-easy syntax for defining accessors.
在形式上,Scala調(diào)用無(wú)參數(shù)的numer和denom方法,這種方法用于創(chuàng)建快捷的語(yǔ)法以定義accessor。
You can create the class quickly by using Eclipse's features for creating accessors and constructors from fields.
您可以通過使用Eclipse的從字段創(chuàng)建存取器(accessor)和構(gòu)造函數(shù)的特性來創(chuàng)建這些類。
ActiveRecord dynamically creates accessors based on the column names of the database table that it is mapped to.
ActiveRecord根據(jù)映射的數(shù)據(jù)庫(kù)表的列名動(dòng)態(tài)創(chuàng)建訪問器。
Next we switch back to the physical level and take a closer look at accessors.
下面我們回到物理層來仔細(xì)看看訪問器。
Otherwise, you can call various accessors of Benchmark to generate a custom report.
除此之外,還可以調(diào)用Benchmark的各種訪問函數(shù)來生成定制的報(bào)告。