KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonicsystems > jarjar > util > SignatureAdapter


1 /*
2   Jar Jar Links - A utility to repackage and embed Java libraries
3   Copyright (C) 2004 Tonic Systems, Inc.
4
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU General Public License as published by
7   the Free Software Foundation; either version 2 of the License, or
8   (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   GNU General Public License for more details.
14
15   You should have received a copy of the GNU General Public License
16   along with this program; see the file COPYING. if not, write to
17   the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18   Boston, MA 02111-1307 USA
19 */

20
21 package com.tonicsystems.jarjar.util;
22
23 import org.objectweb.asm.signature.*;
24
25 abstract public class SignatureAdapter
26 implements SignatureVisitor
27 {
28     protected SignatureWriter sw;
29     
30     protected SignatureAdapter(SignatureWriter sw)
31     {
32         this.sw = sw;
33     }
34     
35     public void visitFormalTypeParameter(String JavaDoc name) {
36         sw.visitFormalTypeParameter(name);
37     }
38     
39     public SignatureVisitor visitClassBound() {
40         sw.visitClassBound();
41         return this;
42     }
43     
44     public SignatureVisitor visitInterfaceBound() {
45         sw.visitInterfaceBound();
46         return this;
47     }
48         
49     public void visitBaseType(char descriptor) {
50         sw.visitBaseType(descriptor);
51     }
52     
53     public void visitTypeVariable(String JavaDoc name) {
54         sw.visitTypeVariable(name);
55     }
56     
57     public SignatureVisitor visitArrayType() {
58         sw.visitArrayType();
59         return this;
60     }
61     
62     public void visitClassType(String JavaDoc name) {
63         sw.visitClassType(name);
64     }
65     
66     public void visitInnerClassType(String JavaDoc name) {
67         sw.visitInnerClassType(name);
68     }
69     
70     public void visitTypeArgument() {
71         sw.visitTypeArgument();
72     }
73     
74     public SignatureVisitor visitTypeArgument(char wildcard) {
75         sw.visitTypeArgument(wildcard);
76         return this;
77     }
78     
79     public void visitEnd() {
80         sw.visitEnd();
81     }
82     
83     public SignatureVisitor visitSuperclass() {
84         sw.visitSuperclass();
85         return this;
86     }
87     
88     public SignatureVisitor visitInterface() {
89         sw.visitInterface();
90         return this;
91     }
92     
93     public SignatureVisitor visitParameterType() {
94         sw.visitParameterType();
95         return this;
96     }
97     
98     public SignatureVisitor visitReturnType() {
99         sw.visitReturnType();
100         return this;
101     }
102     
103     public SignatureVisitor visitExceptionType() {
104         sw.visitExceptionType();
105         return this;
106     }
107 }
108
Popular Tags