001    /*
002     * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003     *
004     * Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
005     *
006     * The contents of this file are subject to the terms of either the GNU
007     * General Public License Version 2 only ("GPL") or the Common Development
008     * and Distribution License("CDDL") (collectively, the "License").  You
009     * may not use this file except in compliance with the License.  You can
010     * obtain a copy of the License at
011     * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
012     * or packager/legal/LICENSE.txt.  See the License for the specific
013     * language governing permissions and limitations under the License.
014     *
015     * When distributing the software, include this License Header Notice in each
016     * file and include the License file at packager/legal/LICENSE.txt.
017     *
018     * GPL Classpath Exception:
019     * Oracle designates this particular file as subject to the "Classpath"
020     * exception as provided by Oracle in the GPL Version 2 section of the License
021     * file that accompanied this code.
022     *
023     * Modifications:
024     * If applicable, add the following below the License Header, with the fields
025     * enclosed by brackets [] replaced by your own identifying information:
026     * "Portions Copyright [year] [name of copyright owner]"
027     *
028     * Contributor(s):
029     * If you wish your version of this file to be governed by only the CDDL or
030     * only the GPL Version 2, indicate your decision by adding "[Contributor]
031     * elects to include this software in this distribution under the [CDDL or GPL
032     * Version 2] license."  If you don't indicate a single choice of license, a
033     * recipient has the option to distribute your version of this file under
034     * either the CDDL, the GPL Version 2 or to extend the choice of license to
035     * its licensees as provided above.  However, if you add GPL Version 2 code
036     * and therefore, elected the GPL Version 2 license, then the option applies
037     * only if the new code is made subject to such option by the copyright
038     * holder.
039     */
040    
041    package com.sun.enterprise.admin.cli.schemadoc;
042    
043    import org.objectweb.asm.AnnotationVisitor;
044    import org.objectweb.asm.Attribute;
045    import org.objectweb.asm.ClassVisitor;
046    import org.objectweb.asm.FieldVisitor;
047    import org.objectweb.asm.Label;
048    import org.objectweb.asm.MethodVisitor;
049    
050    public class EmptyVisitor implements ClassVisitor, FieldVisitor, MethodVisitor, AnnotationVisitor {
051        @Override
052        public void visit(int i, int i1, String s, String s1, String s2,
053            String[] strings) {
054        }
055    
056        @Override
057        public void visitSource(String s, String s1) {
058        }
059    
060        @Override
061        public void visitOuterClass(String s, String s1, String s2) {
062        }
063    
064        @Override
065        public AnnotationVisitor visitAnnotation(String s, boolean b) {
066            return null;
067        }
068    
069        @Override
070        public void visitAttribute(Attribute attribute) {
071        }
072    
073        @Override
074        public void visitInnerClass(String s, String s1, String s2, int i) {
075        }
076    
077        @Override
078        public FieldVisitor visitField(int i, String s, String s1, String s2, Object o) {
079            return null;
080        }
081    
082        @Override
083        public MethodVisitor visitMethod(int i, String s, String s1, String s2,
084            String[] strings) {
085            return null;
086        }
087    
088        @Override
089        public void visitEnd() {
090        }
091    
092        @Override
093        public void visit(String s, Object o) {
094        }
095    
096        @Override
097        public void visitEnum(String s, String s1, String s2) {
098        }
099    
100        @Override
101        public AnnotationVisitor visitAnnotation(String s, String s1) {
102            return null;
103        }
104    
105        @Override
106        public AnnotationVisitor visitArray(String s) {
107            return null;
108        }
109    
110        @Override
111        public AnnotationVisitor visitAnnotationDefault() {
112            return null;
113        }
114    
115        @Override
116        public AnnotationVisitor visitParameterAnnotation(int i, String s, boolean b) {
117            return null;
118        }
119    
120        @Override
121        public void visitCode() {
122        }
123    
124        @Override
125        public void visitFrame(int i, int i1, Object[] objects, int i2, Object[] objects1) {
126        }
127    
128        @Override
129        public void visitInsn(int i) {
130        }
131    
132        @Override
133        public void visitIntInsn(int i, int i1) {
134        }
135    
136        @Override
137        public void visitVarInsn(int i, int i1) {
138        }
139    
140        @Override
141        public void visitTypeInsn(int i, String s) {
142        }
143    
144        @Override
145        public void visitFieldInsn(int i, String s, String s1, String s2) {
146        }
147    
148        @Override
149        public void visitMethodInsn(int i, String s, String s1, String s2) {
150        }
151    
152        @Override
153        public void visitJumpInsn(int i, Label label) {
154        }
155    
156        @Override
157        public void visitLabel(Label label) {
158        }
159    
160        @Override
161        public void visitLdcInsn(Object o) {
162        }
163    
164        @Override
165        public void visitIincInsn(int i, int i1) {
166        }
167    
168        @Override
169        public void visitTableSwitchInsn(int i, int i1, Label label, Label[] labels) {
170        }
171    
172        @Override
173        public void visitLookupSwitchInsn(Label label, int[] ints, Label[] labels) {
174        }
175    
176        @Override
177        public void visitMultiANewArrayInsn(String s, int i) {
178        }
179    
180        @Override
181        public void visitTryCatchBlock(Label label, Label label1, Label label2, String s) {
182        }
183    
184        @Override
185        public void visitLocalVariable(String s, String s1, String s2, Label label,
186            Label label1, int i) {
187        }
188    
189        @Override
190        public void visitLineNumber(int i, Label label) {
191        }
192    
193        @Override
194        public void visitMaxs(int i, int i1) {
195        }
196    }