diff src/clojure/asm/commons/EmptyVisitor.java @ 10:ef7dbbd6452c

added clojure source goodness
author Robert McIntyre <rlm@mit.edu>
date Sat, 21 Aug 2010 06:25:44 -0400
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/clojure/asm/commons/EmptyVisitor.java	Sat Aug 21 06:25:44 2010 -0400
     1.3 @@ -0,0 +1,221 @@
     1.4 +/***
     1.5 + * ASM: a very small and fast Java bytecode manipulation framework
     1.6 + * Copyright (c) 2000-2005 INRIA, France Telecom
     1.7 + * All rights reserved.
     1.8 + *
     1.9 + * Redistribution and use in source and binary forms, with or without
    1.10 + * modification, are permitted provided that the following conditions
    1.11 + * are met:
    1.12 + * 1. Redistributions of source code must retain the above copyright
    1.13 + *    notice, this list of conditions and the following disclaimer.
    1.14 + * 2. Redistributions in binary form must reproduce the above copyright
    1.15 + *    notice, this list of conditions and the following disclaimer in the
    1.16 + *    documentation and/or other materials provided with the distribution.
    1.17 + * 3. Neither the name of the copyright holders nor the names of its
    1.18 + *    contributors may be used to endorse or promote products derived from
    1.19 + *    this software without specific prior written permission.
    1.20 + *
    1.21 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    1.22 + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.23 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.24 + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    1.25 + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    1.26 + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    1.27 + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    1.28 + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    1.29 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.30 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
    1.31 + * THE POSSIBILITY OF SUCH DAMAGE.
    1.32 + */
    1.33 +package clojure.asm.commons;
    1.34 +
    1.35 +import clojure.asm.AnnotationVisitor;
    1.36 +import clojure.asm.Attribute;
    1.37 +import clojure.asm.ClassVisitor;
    1.38 +import clojure.asm.FieldVisitor;
    1.39 +import clojure.asm.Label;
    1.40 +import clojure.asm.MethodVisitor;
    1.41 +
    1.42 +/**
    1.43 + * An empty implementation of the ASM visitor interfaces.
    1.44 + *
    1.45 + * @author Eric Bruneton
    1.46 + */
    1.47 +public class EmptyVisitor implements
    1.48 +                          ClassVisitor,
    1.49 +                          FieldVisitor,
    1.50 +                          MethodVisitor,
    1.51 +                          AnnotationVisitor{
    1.52 +
    1.53 +public void visit(
    1.54 +		final int version,
    1.55 +		final int access,
    1.56 +		final String name,
    1.57 +		final String signature,
    1.58 +		final String superName,
    1.59 +		final String[] interfaces){
    1.60 +}
    1.61 +
    1.62 +public void visitSource(final String source, final String debug){
    1.63 +}
    1.64 +
    1.65 +public void visitOuterClass(
    1.66 +		final String owner,
    1.67 +		final String name,
    1.68 +		final String desc){
    1.69 +}
    1.70 +
    1.71 +public AnnotationVisitor visitAnnotation(
    1.72 +		final String desc,
    1.73 +		final boolean visible){
    1.74 +	return this;
    1.75 +}
    1.76 +
    1.77 +public void visitAttribute(final Attribute attr){
    1.78 +}
    1.79 +
    1.80 +public void visitInnerClass(
    1.81 +		final String name,
    1.82 +		final String outerName,
    1.83 +		final String innerName,
    1.84 +		final int access){
    1.85 +}
    1.86 +
    1.87 +public FieldVisitor visitField(
    1.88 +		final int access,
    1.89 +		final String name,
    1.90 +		final String desc,
    1.91 +		final String signature,
    1.92 +		final Object value){
    1.93 +	return this;
    1.94 +}
    1.95 +
    1.96 +public MethodVisitor visitMethod(
    1.97 +		final int access,
    1.98 +		final String name,
    1.99 +		final String desc,
   1.100 +		final String signature,
   1.101 +		final String[] exceptions){
   1.102 +	return this;
   1.103 +}
   1.104 +
   1.105 +public void visitEnd(){
   1.106 +}
   1.107 +
   1.108 +public AnnotationVisitor visitAnnotationDefault(){
   1.109 +	return this;
   1.110 +}
   1.111 +
   1.112 +public AnnotationVisitor visitParameterAnnotation(
   1.113 +		final int parameter,
   1.114 +		final String desc,
   1.115 +		final boolean visible){
   1.116 +	return this;
   1.117 +}
   1.118 +
   1.119 +public void visitCode(){
   1.120 +}
   1.121 +
   1.122 +public void visitFrame(
   1.123 +		final int type,
   1.124 +		final int nLocal,
   1.125 +		final Object[] local,
   1.126 +		final int nStack,
   1.127 +		final Object[] stack){
   1.128 +}
   1.129 +
   1.130 +public void visitInsn(final int opcode){
   1.131 +}
   1.132 +
   1.133 +public void visitIntInsn(final int opcode, final int operand){
   1.134 +}
   1.135 +
   1.136 +public void visitVarInsn(final int opcode, final int var){
   1.137 +}
   1.138 +
   1.139 +public void visitTypeInsn(final int opcode, final String desc){
   1.140 +}
   1.141 +
   1.142 +public void visitFieldInsn(
   1.143 +		final int opcode,
   1.144 +		final String owner,
   1.145 +		final String name,
   1.146 +		final String desc){
   1.147 +}
   1.148 +
   1.149 +public void visitMethodInsn(
   1.150 +		final int opcode,
   1.151 +		final String owner,
   1.152 +		final String name,
   1.153 +		final String desc){
   1.154 +}
   1.155 +
   1.156 +public void visitJumpInsn(final int opcode, final Label label){
   1.157 +}
   1.158 +
   1.159 +public void visitLabel(final Label label){
   1.160 +}
   1.161 +
   1.162 +public void visitLdcInsn(final Object cst){
   1.163 +}
   1.164 +
   1.165 +public void visitIincInsn(final int var, final int increment){
   1.166 +}
   1.167 +
   1.168 +public void visitTableSwitchInsn(
   1.169 +		final int min,
   1.170 +		final int max,
   1.171 +		final Label dflt,
   1.172 +		final Label labels[]){
   1.173 +}
   1.174 +
   1.175 +public void visitLookupSwitchInsn(
   1.176 +		final Label dflt,
   1.177 +		final int keys[],
   1.178 +		final Label labels[]){
   1.179 +}
   1.180 +
   1.181 +public void visitMultiANewArrayInsn(final String desc, final int dims){
   1.182 +}
   1.183 +
   1.184 +public void visitTryCatchBlock(
   1.185 +		final Label start,
   1.186 +		final Label end,
   1.187 +		final Label handler,
   1.188 +		final String type){
   1.189 +}
   1.190 +
   1.191 +public void visitLocalVariable(
   1.192 +		final String name,
   1.193 +		final String desc,
   1.194 +		final String signature,
   1.195 +		final Label start,
   1.196 +		final Label end,
   1.197 +		final int index){
   1.198 +}
   1.199 +
   1.200 +public void visitLineNumber(final int line, final Label start){
   1.201 +}
   1.202 +
   1.203 +public void visitMaxs(final int maxStack, final int maxLocals){
   1.204 +}
   1.205 +
   1.206 +public void visit(final String name, final Object value){
   1.207 +}
   1.208 +
   1.209 +public void visitEnum(
   1.210 +		final String name,
   1.211 +		final String desc,
   1.212 +		final String value){
   1.213 +}
   1.214 +
   1.215 +public AnnotationVisitor visitAnnotation(
   1.216 +		final String name,
   1.217 +		final String desc){
   1.218 +	return this;
   1.219 +}
   1.220 +
   1.221 +public AnnotationVisitor visitArray(final String name){
   1.222 +	return this;
   1.223 +}
   1.224 +}