The binding compiler also generates some added support classes that go along with the added methods.
绑定编译器在生成一些添加的方法时,还会生成一些添加的支持类。
To avoid spending time on this type of problem, I added another option to try loading the modified classes directly within the binding compiler.
为了避免把时间花在这类问题上,我添加了另外一个选项,尝试直接在绑定编译器内装入修改后的类。
It's smart about how it does this: If the same added code is needed by more than one binding, the binding compiler only generates the code once.
编译器执行该工作的方式是智能化的:如果多个绑定需要同一个添加代码,那么绑定编译器只要生成代码一次。
Likewise, if you rerun the compiler with a modified binding definition it replaces the methods added for the old binding rather than just adding new ones.
同样,如果用修改过的绑定定义重新运行编译器,那么它将替代为旧绑定而添加的方法,而不只是添加新的方法。
The binding compiler USES these comparisons both to make sure that pre-existing binding methods it finds in classes are still needed, and to avoid creating duplicate classes or methods.
利用这些比较,绑定编译器可以确定在类中发现的已经存在的方法是否仍然需要,并避免创建重复的类或方法。
Early versions of the binding compiler did not go through this step of constructing a code generation model, instead generating code directly from the binding.
绑定编译器的早期版本不经历构造代码生成模型这一步,而是直接从绑定生成代码。
In the 1.0 release, the binding compiler is more than four times the size of the runtime (at 228k vs. 54k) and many times the complexity.
在1.0发行版中,绑定编译器的尺寸是运行时的4倍(228k比54k),复杂性则高出许多倍。
These changes include a complete rewrite of the binding compiler code generation, with an added option for using source code enhancement as an alternative to bytecode enhancement.
这些变化包括:对编译器代码生成进行完全重写,添加用源代码增强代替字节码增强的选项。
Still, this pair of bindings provides a good starting point for a look at how the binding compiler does its job.
这一对绑定提供了研究绑定编译器工作方式的良好起点。
The binding compiler reads one or more binding definition documents (see Defining bindings).
绑定编译器读取一个或多个绑定定义文档(请参阅定义绑定)。
This configuration is processed by a binding compiler component of the JiBX framework, which implements the actual bytecode enhancement of the compiled classes.
这个配置由JiBX框架的绑定编译器组件处理,它实现了编译后的类的实际字节码增强。
If there are such changes, the JiBX binding compiler will report an error and the deployment step will fail.
如果存在这样的变更,JiBX绑定编译器将报告错误,部署步骤将失败。
The actual class file modifications are done by a JiBX component called the binding compiler.
实际的类文件修改是由称为绑定编译器的JiBX组件完成的。
For the JiBX binding compiler, I found it easiest to just hide all the BCEL details within several wrapper classes.
对于JiBX绑定编译器,我发现最容易的方式就是把所有BCEL的细节隐藏在几个包装器类中。
In this case, there were no methods present in the original classes, so all the methods shown in the diagram were added by the JiBX binding compiler.
在这个示例中,原始类中没有方法,所以图2中显示的所有方法都是JiBX绑定编译器添加的。
You'd generate the same data model if you ran the JAXB XJC binding compiler directly on the schemas used by a Web service.
如果直接在Web服务使用的模式上面运行JAXBXJC绑定编译器,您将生成相同的数据模型。
The binding compiler adds JiBX binding code to your class files, preparing them for use with the JiBX runtime.
绑定编译器将JiBX 绑定代码添加到您的类文件,编译它们以在 JiBX运行时使用。
The JiBX binding compiler described in the last section works from binding definitions that you supply.
上一节中描述的JiBX绑定编译器根据您提供的绑定定义进行工作。
JiBX supplies a binding compiler for this purpose.
JiBX提供了一个用于此目的的绑定编译器。
The compiler even removes methods and classes that were previously added for a binding you're no longer using.
编译器甚至会除去以前为绑定添加的、现在不再使用的方法和类。
The AOT compiler detects and reports template binding errors during the build step before users can see them.
AOT编译器在构建过程中检测和报告模板绑定错误,避免用户遇到这些错误。
This type system not only provides information for compiler optimization but also preserves the system flexibility resulting from dynamic binding.
这个类型系统不仅提供了编译优化信息,还保持了动态约束带来的系统灵活性。
This type of assignment also causes the compiler to generate all the code needed for binding.
这种类型的赋值也会引起编译器生成绑定所需要的所有代码。
Dynamic binding lets the compiler determine at run time whether to use a function defined in the base or derived class.
动态绑定使编译器能够在运行时决定是使用基类中定义的函数还是派生类中定义的函数。
Early binding reduces the number and severity of run-time errors because it allows the compiler to report errors when a program is compiled.
早期系结减少执行阶段错误的次数和严重性,因为它允许编译器在编译程序时报告错误。
Early binding reduces the number and severity of run-time errors because it allows the compiler to report errors when a program is compiled.
早期系结减少执行阶段错误的次数和严重性,因为它允许编译器在编译程序时报告错误。
应用推荐