Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
design_pattern:visitor_pattern [2017/10/31 09:20] – [Visitor Pattern] ledyxdesign_pattern:visitor_pattern [2021/02/07 03:30] (current) – [Visitor Pattern] ledyx
Line 7: Line 7:
  
  
-{{tag>Architecture Modeling DesignPattern Behavioral}}+{{tag>Architecture Modeling Design_Pattern Behavioral}}
  
-  * 시나리오 +시나리오 
-    * [[composite pattern]]의 예제인 "파일 시스템" 탐색을 이용. 여기서 처리 알고리즘을 분리시킨다.+  * [[composite pattern]]의 예제인 "파일 시스템"을 객체 구조(Element, ObjectStructure)로 이용. 여기서 처리 알고리즘을 분리시킨다.
  
  
Line 95: Line 95:
  }  }
   
 + /* 객체 구조의 각 요소에 특정한 처리를 실행하는 데 필요 */
  /* Directory에서만 유효 */  /* Directory에서만 유효 */
  public Iterator<Entry> iterator() throws FileTreatmentException {  public Iterator<Entry> iterator() throws FileTreatmentException {
design_pattern/visitor_pattern.1509441607.txt.gz · Last modified: 2021/02/07 03:15 (external edit)