InfoQ: With the ParseTree gem, one can access the parse tree of a class or method.
InfoQ:我们可以使用ParseTreegem包访问一个类或一个方法的解析树。
The method accepts a parse tree (as an XPathNode object) as parameter and, for now, returns an instance of DFATable.
目前,该方法接受解析树(作为一个XPathNode对象)作为参数,并返回DFATable的实例。
Since they have access to the entire parse tree (minus the actual method body), Doclets provide a handy mechanism to compile utility classes or compile reports on the code.
因为它们有权访问整个解析树(除去实际方法主体),所以Doclet提供了一个简便机制来编译有关代码的实用程序类或报告。
The axpath() method returns what is known as an augmented parse tree -- a parser tree with one extra node for the END_MARK.
axpath()方法返回称之为扩张的解析树 ―该解析树额外地带有一个表示 END_MARK 的节点。
A Doclet has a static start method and takes the parse tree as an argument.
Doclet有静态start方法,并将解析树作为参数。
The LXML parse method reads the entire document and builds an in-memory tree.
lxmlparse方法读取整个文档并在内存中构建一个树。
The LXML parse method reads the entire document and builds an in-memory tree.
lxmlparse方法读取整个文档并在内存中构建一个树。
应用推荐