如果可以使用xml语法来生成一组初始的类和相应的绑定定义,那么其优点就是可以快速地获取工作代码。
If an XML grammar could be used for generating an initial set of classes and a corresponding binding definition, this would provide the benefit of getting working code quickly.
您可以通过它们精确地定义有较广影响而在目标类中有较少语法残留的行为。
They allow you to concisely define behavior that has wide-ranging impact with very little syntactic hangover in the target class.
下一步就是运行您的单元测试,修正语法错误(即,编写一个类,使它实现您的测试刚定义的接口),并再次运行测试。
The next step is to run your unit tests, fix the syntax errors (that is, implement the class with the interfaces just defined by your test), and run the tests again.
例如,当person类被创建时,它显示语法错误是因为它的一个属性address没有定义。
For example, when the Person class was created, it displayed syntax errors because one of its attributes, Address, was undefined.
伪元素与伪类相似(语法也相同),但它定义的是文档中的内容。
Pseudo-elements are similar to pseudo-classes (and share syntax with them) but define content within the document. Pseudo-elements defined by the CSS2 Recommendation include
换句话说,对应xml语法中的每个概念定义相应的类:元素、属性、实体、文档。
In other words, classes are defined for every concept in the XML syntax: element, attribute, entity, documents.
定义语法分析器类,应用程序员将定义一个'handler '类,该类将注册所使用的语法分析器。
Instead of defining a parser class, an application programmer defines a 'handler' class that is registered with whatever parser is used.
应用程序员将定义一个handler类,而不是语法分析器类,该handler类能注册到任何所使用的语法分析器中。
Instead of defining a parser class, an application programmer defines a handler class that is registered with whatever parser is used.
Xerces 定义了 DOMParser类,以便从Xerces语法分析器的输出构建文档。
The DOMParser class is defined by Xerces to build a document from the output of the Xerces parser.
递增地定义了这三类补偿模型的语法,同时给出了相应的操作语义。
We define the syntax of three categories of the compensation models in an incremental way, and the operational semantics are given.
递增地定义了这三类补偿模型的语法,同时给出了相应的操作语义。
We define the syntax of three categories of the compensation models in an incremental way, and the operational semantics are given.
应用推荐