当然,后续执行将从修补代码中获益,从而可以更直接地引用实例、静态字段或方法目标。
Subsequent executions, of course, will benefit from the result of patching the code so that the instance or static field, or method target, is more directly referenced.
如果没有beforefieldinit,运行库就必须在某个精确时间运行类型构造函数,即,恰好在第一次访问该类型的静态或实例字段和方法之前。
Without beforefieldinit, the runtime must run the type constructor at a precise time-just before the first access to static or instance fields and methods of the type.
在使用这些类时,您要做的第一件事就是利用静态方法createBOSession()创建一个新的会话实例。
The first thing to do when you use these classes is to create a new session instance with the static method createBOSession().
SWTHelper类拥有一些静态方法,可帮助您识别所处理的特定视图实例。
The SWTHelper class has static methods that help identify the specific view instance you work with.
LaunchApp使用Assembly .LoadFrom静态方法创建Assembly对象的实例,而不是通过显式调用构造函数来创建。
LaunchApp creates an instance of an Assembly object using the Assembly.LoadFrom static method rather than by using an explicit constructor call.
我们将创建measurementmanager类,它带有一些静态方法,用于获取和返回可重用的Measurement实例。
We'll create the MeasurementManager class with some static methods for getting and returning reusable Measurement instances.
Repository wrapper类有两个静态方法,可以返回受管bean实例。
The RepositoryWrapper class has two static methods that return the managed bean instance.
然后可以使用静态模板类expandannotated方法将类实例扩展为uri,如清单12所示。
Instances of the class can then be expanded into URIs using the static Template class expandAnnotated method as Listing 12 shows.
因为我们希望List成为其所包含的元素类型的泛型,所以希望静态factory方法带有类型变量t这一参数并返回List的实例。
Because we'd like our Lists to be generic in the type of element they contain, we'd like our static factory method to take an argument of type variable t and return an instance of List.
应用中的类可以直接继承Response类,也可以使用其静态方法来通过ResponseBuilder创建实例。
An application class can extend this class directly or can use one of the static methods to create an instance using a ResponseBuilder.
接着,main方法依次调用下列私有静态方法(必要时在UDDI4Jproxy或者Publish实例中传递)。
The main method then calls the following private static methods in turn, passing in either the UDDI4J proxy or the Publish instance, as appropriate.
静态Current属性使用Stack.Peek方法返回位于堆栈顶端的T实例(如果存在),如果Stack 为空则返回空。
The static Current property uses the Stack.Peek method to return the T instance at the top of the stack if one exists, returning null if the Stack is empty.
注意:这些类中的所有方法都是静态的,所以测试开发人员不需要将这个类实例化为一个对象就可以使用这些方法。
Note: All methods in these classes are static, so the test developer does not need to instantiate an object of this type to use them.
这种做法并不常见,因为需要开发人员创建仅用于访问非实例(静态)方法和字段的对象的实例。
This is unusual because it requires a developer to create an instance of an object just to access non-instance (static) methods and fields!
您可以从一个静态工厂方法获得一个MXBean实例,该方法可以使您直接访问本地运行的JVM的MXBean接口。
You can retrieve an MXBean instance from a static factory method that gives you direct access to the locally running JVM's MXBean interface.
DefaultDAO 类在静态变量instance 中存储了它自己的一个实例(存储为Singleton),并允许通过getInstance()方法访问该实例。
The DefaultDAO class stores an instance of itself (as a Singleton) in the static variable instance, allowing access to that instance through the getInstance() method.
大概这意味着IndexReader . open,一个静态工厂方法,实例了一个适当的具体的indexreader子类并返回它。
Presumably that means IndexReader.open , a static factory method, instantiates an appropriate concrete subclass of IndexReader and returns it.
然后,Factory类中的静态方法会调用您工厂实例的实例方法。
The static methods in the Factory class will then call the instance methods of your factory instance.
bosession类提供创建该类的实例的静态工厂方法,封装用来访问Notes数据库的NotesSession实例。
The BOSession class offers static factory methods to create an instance of this class which encapsulates a Notes Session instance used to access the Notes database.
使用自定义的类。创建的所有设置一个类(一个更好的方法)。使用一个单一的静态类实例的访问设置。你可以序列化和反序列化的类。
Use custom class. Create a class with all settings (a better approach). Use a single static instance of the class to access settings. You can serialize and deserialize that class.
只有一个方法来实例化控制,那么你可以在你的控制类的多个静态方法。
Than one way to instantiate the control then you can provide multiple static methods on your control class.
通过经济分析,得到了可以加装低压省煤器的静态及动态条件,并以实例说明了具体的计算方法及所取得的收益。
Through economic analysis, the static and dynamic conditions to install low pressure economizer were obtained and the concrete calculation method and the incoming were provided by an example.
这是不正确的创建类的新实例,静态方法吗?
Is it incorrect to create a new instance of a class with a static method on it?
静态方法的存在即使你不创建任何实例。
Static methods exists even if you don't create any instances.
不应该使用实例构造函数、一些特殊的私有方法、任何其它习惯来初始化静态变量。
You should not use your instance constructors, some special private function, or any other idiom to initialize static variables.
论文通过工程实例,介绍了采用物探、动静态应变观测等方法综合研究钻孔抽水与地面变形之关系。
By the project performance, it has introduced some methods such as geophysical prospecting, dynamic and static strain observation to study the relation between drill-hole pumping and land deformation.
扩展方法是可以通过使用实例方法语法调用的静态方法。
Extension methods are static methods that can be invoked using instance method syntax.
静态方法,在给定活动实例和上下文令牌的情况下返回上下文信息。
Static method that returns context information given an activity instance and context token.
实例计算表明,采用动态优化方法比采用静态优化方法,对降低万向节传动引起的传动系的振动和噪声将会有更好的效果。
Calculations of some examples show that the dynamic optimal design is better than the conventional one for reducing vibration and noise caused by universal joint propeller shafts.
实例计算表明,采用动态优化方法比采用静态优化方法,对降低万向节传动引起的传动系的振动和噪声将会有更好的效果。
Calculations of some examples show that the dynamic optimal design is better than the conventional one for reducing vibration and noise caused by universal joint propeller shafts.
应用推荐