1 32 33 package com.jeantessier.classreader; 34 35 public class LoadListenerVisitorAdapter implements LoadListener { 36 private Visitor visitor; 37 38 public LoadListenerVisitorAdapter(Visitor visitor) { 39 this.visitor = visitor; 40 } 41 42 public void beginSession(LoadEvent event) { 43 } 45 46 public void beginGroup(LoadEvent event) { 47 } 49 50 public void beginFile(LoadEvent event) { 51 } 53 54 public void beginClassfile(LoadEvent event) { 55 } 57 58 public void endClassfile(LoadEvent event) { 59 event.getClassfile().accept(visitor); 60 } 61 62 public void endFile(LoadEvent event) { 63 } 65 66 public void endGroup(LoadEvent event) { 67 } 69 70 public void endSession(LoadEvent event) { 71 } 73 } 74 | Popular Tags |