visitor pattern 中文意思是什麼

visitor pattern 解釋
訪問者模式
  • visitor : n (fem visitress )1 訪問者,來客,來賓;留住客,住客;遊客,來游者,參觀者。2 〈 pl 〉 【運】客...
  • pattern : n 1 模範,榜樣;典範。2 型,模型;模式;雛型;【冶金】原型。3 花樣;式樣;(服裝裁剪的)紙樣;圖...
  1. Basically, the visitor pattern presents a participant called the visitor, whose instances are accepted by a composite object or data structure and applied to each of the constituent nodes of that data structure

    基本上, visitor模式展現一個稱為visitor的參與者,該參與者的實例由一個復合對象(或者數據結構)接收,並應用到這個數據結構的每一個構成節點。
  2. The in - memory data structure had a sort of tree structure, as shown in listing 1, rooted at the home pages of the various sites being crawled, so the visitor pattern was ideal for searching it or extracting data from it

    內存中的數據結構是一種樹型結構,如清單1所示,它的根是快速搜索過的各個網站的主頁,因此visitor模式是搜索這些主頁或者從中提取數據的理想模式。
  3. It takes a plain javacc grammar file as input and automatically generates the following : a set of syntax tree classes based on the productions in the grammar using the visitor design pattern ; two interfaces visitor and objectvisitor ; two depth - first visitors depthfirstvisitor and objectdepthfirst ; and a javacc grammar with the proper annotations to build the syntax tree during parsing

    它把普通的javacc語法文件作為輸入並自動生成下列各項:基於語法中的生成的一組語法樹類(使用visitor設計模式) ;兩個介面( visitor和objectvisitor ) ;兩個深度優先訪問器( depthfirstvisitor和objectdepthfirst ) ;和一個帶正確注釋的javacc語法(用於在解析期間構建語法樹) 。
  4. This visitor - pattern variant can increase the terseness of your code

    這種visitor模式變體可以增加代碼的簡潔性
  5. Another example of the usage of closures and higher order functions in an object - oriented world is the visitor pattern

    另一個在面向對象世界中使用閉包和高階函數的例子是visitor模式。
  6. Composite pattern visitor pattern

    用visitor擴展類層次結構
  7. Rather than manipulating bytecode instructions directly, asm uses a visitor pattern to process class data including instruction sequences as streams of events

    Asm並不直接操縱位元組碼指令,而是採用visitor模式把類數據(包括指令序列)當成事件流來處理。
  8. As for the visitor pattern, much of the reason it is so widely applicable is the fact that it complements the composite pattern

    至於visitor模式,它受到如此廣泛應用的許多原因是它補充了composite模式。
  9. All bytecode scanning detectors are based on the visitor pattern, which findbugs implements

    所有位元組碼掃描檢測器都基於visitor模式, findbugs實現了這個模式。
  10. Curried closures can be used to mimic the essential elements of the visitor pattern, as we showed in the

    Curry過的閉包可以用來模擬visitor模式的基本元素,正如在
  11. The idea behind the depth - first visitor pattern is as follows : most visitors that recursively descend down a data structure do so in a depth - first manner

    Depth - first visitor模式的基本思想如下:大多數訪問器都以深度優先的方式向下遞歸一個數據結構。
  12. This said, visitors are best used in cases where the composite hierarchy is not expected to change although there are ways around this, such as the " extensible visitor pattern "

    也就是說,當不期望更改復合層次結構時,使用訪問器是最佳的選擇(雖然對於它還有一些方法可用,如「 extensible visitor模式」 ) 。
  13. Asm is a java bytecode manipulation framework that uses the visitor pattern to enable you to transform class files, in much the same way that sax events can be used to traverse and transform an xml document

    Asm是個java位元組碼操縱框架,使用訪客模式實現對類文件的轉換,使用的方式非常像使用sax事件遍歷和轉換xml文檔那樣。
分享友人