01: package com.kirkk.analyzer.framework;
02:
03: public abstract class JarCollectionDecorator implements JarCollection {
04: protected JarCollection jarCollection;
05:
06: public JarCollectionDecorator(JarCollection jarCollection) {
07: this .jarCollection = jarCollection;
08: }
09:
10: public int getJarCount() {
11: return this .jarCollection.getJarCount();
12: }
13:
14: public boolean hasNext() {
15: return this .jarCollection.hasNext();
16: }
17:
18: public Jar nextJar() {
19: return this .jarCollection.nextJar();
20: }
21:
22: public Jar getJarContainingPackage(String packageName) {
23: return this .jarCollection.getJarContainingPackage(packageName);
24: }
25:
26: public void first() {
27: this .jarCollection.first();
28: }
29:
30: public Jar getJar(String jarName) {
31: return this .jarCollection.getJar(jarName);
32: }
33:
34: public Jar[] toArray() {
35: return this.jarCollection.toArray();
36: }
37:
38: }
|