实例变量
- 网络instance variable;Ivars;ivar;non-static
-
selectcard方法随机选取一张卡片,并将它赋给@currentcard实例变量。
A select_card method picks a card at random and assigns it the @ current_card instance variable .
-
视图类有一个专用的实例变量@mainviewcomponent,它引用相应的Swing类。
A view class has a special instance variable called @ main_view_component that references its corresponding Swing class .
-
增加自动对象实例变量打包(automaticobjectivarpacking)功能(提升内存利用率)
Add automatic object ivar packing ( improves memory usage )
-
每个实例变量对应前面定义的一个UI元素。
Each of these corresponds to a UI element defined earlier .
-
方法是设置prototype实例变量使其指向继承链的父。
You 'll set a prototype instance variable to point to the parent in the inheritance chain .
-
使用实例变量count中的内容呈现了一个标题,该变量包含了一个简单计数器的值。
Renders a heading with the content in the instance variable count , which contains the value of a simple counter .
-
respondto方法接受单个代码块,并传递一个实例变量(标为wants)到代码块。
The respond_to method accepts a single code block and passes one instance variable ( labeled wants ) into the code block .
-
关键字var用于表示JavaFX中的一个实例变量。
The keyword var is used to denote an instance variable in JavaFX .
-
第一个也是最重要的新特性是针对类的方法和实例变量的访问保护&public、protected和private关键字。
The first and most important addition was access protection for methods and instance variables on classes & the public , protected , and private keywords .
-
loadcards方法从磁盘读取文本文件,划分出每个卡片,并将结果赋给@cards实例变量。
The load_cards method handles reading in the text file from disk , splitting out each card , and assigning the results to the @ cards instance variable .
-
如果您显式设置了名为prototype的实例变量,JavaScript就会在此实例中寻找任何未定义的实例变量或属性。
If you explicitly set the instance variable called prototype , JavaScript will look in this instance for any undefined instance variables or attributes .
-
由于Ruby并不需要声明实例变量,因此建模实例变量最简单的方式就是使用散列。
Because Ruby does not require instance variable declaration , the simplest way to model instance variables is with a hash .
-
在XML和Java技术环境中,这就意味着从XML文档到Java实例变量,然后再回到XML文档。
In an XML and Java technology environment , this would mean going from an XML document into Java instance variables , and then back to an XML document again .
-
由于实例变量还没有接受到任何的赋值,所以就有一个NULL的数值(没有参考索引)。
The instance variables have not yet received any values and therefore have a value of nil ( no reference ) .
-
尽管我在本示例中没有这样做,但是这也是一个声明实例变量的好场所,该实例变量将由您结果中的Java语句引用。
This is also a good place to declare instance variables that will be referenced by Java statements in your productions although I 'm not doing that in this example .
-
数据绑定通过大括号执行(例如,将TextArea元素的text属性绑定到ActionScriptmessage实例变量)。
Data binding is performed using braces ( for example , the TextArea element 's text attribute is bound to the ActionScript message instance variable ) .
-
SAX2BestDeal有几个实例变量来存储当前name和price-quote的内容。
SAX2BestDeal has a few instance variables to store the content of the current name and price-quote .
-
Tapestry必须执行运行时类的修改来支持实例变量,并且只对私有变量。
Tapestry must perform runtime class modifications to support instance variables , and may only do so for private variables .
-
因此,建议的编程实践是在Portlet的init方法中查找服务,并将其存储在一个实例变量中。
Therefore the suggested programming practice is to look up the service in the init method of the portlet and store it in an instance variable .
-
用continuation进行调用使您获得一个代码块和指派给变量的continuation(或已保存的调用堆栈,其中有实例变量)。
Call with continuation gives you a code block , and the continuation ( or a saved call stack , with instance variables ), which you assign to a variable .
-
请注意,关键字“def”在这儿作为一个实例变量的修饰符使用,指明变量是属性。
N.B.The keyword " def ", used here as an instance variable modifier , indicates that the variables are properties .
-
在fill(dbRecord)中Vehicle对象解析从dbRecord(一个数据组)获得的数据,填进自己的实例变量。
In fill ( dbRecord ) the Vehicle object parses the data from the dbRecord ( a data row ), and fills in its own instance variables .
-
这个简单的想法能为每个实例变量省掉3~6行的setter与getter方法代码。
This simple construct saves another three to six lines of code for each instance variable , where a getter and / or a setter method is required .
-
相反地,人们通过给Thread添加一个实例变量(该变量用于保存当前线程的从线程局部变量到它的值的映射的HashMap)来修改Thread类以支持ThreadLocal。
Instead , the Thread class was modified to support ThreadLocal by adding an instance variable to Thread that holds a HashMap mapping thread-local variables to their values for the current thread .
-
假定getX()方法只提供某一实例变量的值。
Suppose the getX () method only answers the value of an instance variable .
-
举一个更为现实和复杂的例子,WorkUnit可能有很多实例变量,它们实际上只在由Worker运行的时候才是相关的。
For in a more realistic and complex example , the WorkUnit may have many instance variables that are really only relevant when it is being run by the Worker .
-
并与具体的编程语言和环境相结合,得到产生依赖关系的机制为:功能依赖、继承、全局变量、调用APl、客户/服务器、消息参数、类定义实例变量等七个方面。
The reason is encapsulation , inheritance and polymorphism , and the mechanism is function dependency , inheritance , global variable , using API , client / server , message and class defining instance variable .
-
您将从aSystem实例变量设置分配值到-(void)viewDidLoad方法中的视图组件。
You will set the assign values , from the aSystem instances variable , to the view components in the - ( void ) viewDidLoad method .
-
重构这个应用程序很容易:只要将所有println替换成用setAttribute()方法,然后将实例变量放入HttpRequest对象的逻辑中即可。
Refactoring this is easy : I simply replace all the printlns with logic that places an instance variable in the HttpRequest object using the setAttribute () method .
-
其他一些映射器要求指定一个列六次:在模式、getter、setter、模型的实例变量、“from”映射和“to”映射中。
Some other mappers force you to specify a column six times : in the schema , the getter , the setter , the model 's instance variable , the " from " mapping , and the " to " mapping .