只能把简单的常量值赋给实例变量。
The only values you can assign to an instance variable are simple constants.
为每个视图组件选择相应的实例变量。
Select for each view component the corresponding instance variable.
不鼓励通过实例变量来使用静态成员。
Using a static member through an instance variable should be discouraged.
把people实例变量转换成xml。
目前不支持访问数组、实例变量和对象引用。
Accessing arrays, instance variables, and object references are not supported as of now.
将对象中所有的实例变量设置为它们的默认值。
Sets all the instance variables in the object to their default values.
同时也创建了用于设置这个实例变量的构造函数。
It also creates a constructor that sets this instance variable.
当对统计测试或过程进行建模时,您需要指出声明哪些实例变量。
When modeling a statistical test or procedure, you need to figure out which instance variables to declare.
简单的解决方案是根据需要将所有实例变量的值都显示到屏幕上。
The simple solution is to dump the values of all the instance variables to the screen as needed.
它将实例变量声明为Bean实现(一个实际的类)的一部分。
The instance variables were declared as part of the bean implementation, which was a concrete class.
首先,必须把字段从单个实例变量修改成字段和值组合构成的散列表。
First, you must change the fields from individual instance variables to a hash table of field and value pairs.
调用处理程序中会包含一个实际的实现类的实例,把它作为实例变量。
The invocation handler will contain an instance of a real implementation class as an instance variable.
最后,我发现他们通过声明元素声明了很多全局变量(类实例变量)。
Finally, it dawned on me that they had declared many variables with global scope (class instance variables) via declaration elements.
具体地,您需要为您在视图上定义的每一个动态组件创建一个实例变量。
Specifically, you need to create an instance variable for each dynamic component that you defined on the view.
清单3的代码设置了Rails显示线路的分页列表时需要的实例变量。
The code in Listing 3 sets up the instance variables rails needs to show a paginated list of trails.
当从一个状态转换到下一个状态时,框架自动捕获当前状态,包括所有实例变量。
As you transition from one state to the next, the framework captures the current state, with all instance variables, automatically.
这个类中的实例变量列表值得注意,因为它们定义了由分析过程生成的结果对象。
The list of instance variables in this class is worth noting because they define the result object that is generated by the analysis procedure.
与实例变量不同的是,类变量与该类所有的对象关联在一起而非某个特定的对象。
Unlike instance variables, class variables are associated with all objects of a particular class and not with individual objects.
这些实例变量不能重新设置,如果它们不为空,则用于为每个请求提供用户名和密码。
These instance variables are not reset and, if they are not null, are used to provide the username and password on every request.
如果您适当地限制了变量的范围并且减少实例变量的使用,则可以减少此类对象保留。
If you scope variables appropriately and reduce the use of instance variables, you can reduce this kind of object retention.
如果您在控制器中创建了一个实例变量,那么这个变量就可以直接在视图模板中使用。
If you create an instance variable in your controller, that variable will magically be available to your view template.
由于Ruby并不需要声明实例变量,因此建模实例变量最简单的方式就是使用散列。
Because Ruby does not require instance variable declaration, the simplest way to model instance variables is with a hash.
它可以识别象局部变量、实例变量、表达式以及if语句等六十多种不同的语言元素。
It can recognize something as a local variable, instance variable, expression, if statement - more than 60 language elements.
在当前环境下,通过选择实例变量来表示计算得到的中间值和汇总结果,从而实施了该原则。
In the present context it is enforced by selection of instance variables to represent computed intermediate and summary results.
使用实例变量count中的内容呈现了一个标题,该变量包含了一个简单计数器的值。
renders a heading with the content in the instance variable count, which contains the value of a simple counter.
这里需要注意的关键内容是用于存放用户名和密码的可能来源的线程本地存储声明和实例变量。
Key things to note here are the thread local storage declarations and the instance variables used to hold the potential source of the username and password.
因此一个类实例所具有的结构(和实例变量)是和它生命周期内发送给它的消息密切相关的。
So the structure (and the ivars) that an instance has depends on what messages it has been sent during its lifetime.
请侧重于这样的测试:那些涉及到作为实例变量存储的对象的测试,因为它们最有可能出现问题。
You should emphasize tests that touch objects stored as instance variables, because they are the most likely to cause problems.
关于如何计算每个实例变量的详细信息,可以查阅该类的构造函数方法,所有这些值都源自那里。
For details on how each instance variable is computed, you can look at the constructor method for the class where all these values are derived.
关于如何计算每个实例变量的详细信息,可以查阅该类的构造函数方法,所有这些值都源自那里。
For details on how each instance variable is computed, you can look at the constructor method for the class where all these values are derived.
应用推荐