001: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
002:
003: package jodd.proxetta;
004:
005: import org.objectweb.asm.AnnotationVisitor;
006: import org.objectweb.asm.Attribute;
007: import org.objectweb.asm.ClassVisitor;
008: import org.objectweb.asm.FieldVisitor;
009: import org.objectweb.asm.Label;
010: import org.objectweb.asm.MethodVisitor;
011:
012: /**
013: * Empty method and class visitor.
014: */
015: public class EmptyVisitor implements MethodVisitor, ClassVisitor {
016:
017: // ---------------------------------------------------------------- class visitor addons
018:
019: public void visit(int i, int i1, String string, String string1,
020: String string2, String[] strings) {
021: }
022:
023: public void visitSource(String string, String string1) {
024: }
025:
026: public void visitOuterClass(String string, String string1,
027: String string2) {
028:
029: }
030:
031: public void visitInnerClass(String string, String string1,
032: String string2, int i) {
033: }
034:
035: public FieldVisitor visitField(int i, String string,
036: String string1, String string2, Object object) {
037: return null;
038: }
039:
040: public MethodVisitor visitMethod(int i, String string,
041: String string1, String string2, String[] strings) {
042: return null;
043: }
044:
045: // ---------------------------------------------------------------- method visitor only
046:
047: public AnnotationVisitor visitAnnotationDefault() {
048: return null;
049: }
050:
051: public AnnotationVisitor visitAnnotation(String string, boolean b) {
052: return null;
053: }
054:
055: public AnnotationVisitor visitParameterAnnotation(int i,
056: String string, boolean b) {
057: return null;
058: }
059:
060: public void visitAttribute(Attribute attribute) {
061: }
062:
063: public void visitCode() {
064: }
065:
066: public void visitFrame(int i, int i1, Object[] objects, int i2,
067: Object[] objects1) {
068: }
069:
070: public void visitInsn(int i) {
071: }
072:
073: public void visitIntInsn(int i, int i1) {
074: }
075:
076: public void visitVarInsn(int i, int i1) {
077: }
078:
079: public void visitTypeInsn(int i, String string) {
080: }
081:
082: public void visitFieldInsn(int i, String string, String string1,
083: String string2) {
084: }
085:
086: public void visitMethodInsn(int i, String string, String string1,
087: String string2) {
088: }
089:
090: public void visitJumpInsn(int i, Label label) {
091: }
092:
093: public void visitLabel(Label label) {
094: }
095:
096: public void visitLdcInsn(Object object) {
097: }
098:
099: public void visitIincInsn(int i, int i1) {
100: }
101:
102: public void visitTableSwitchInsn(int i, int i1, Label label,
103: Label[] labels) {
104: }
105:
106: public void visitLookupSwitchInsn(Label label, int[] ints,
107: Label[] labels) {
108: }
109:
110: public void visitMultiANewArrayInsn(String string, int i) {
111: }
112:
113: public void visitTryCatchBlock(Label label, Label label1,
114: Label label2, String string) {
115: }
116:
117: public void visitLocalVariable(String string, String string1,
118: String string2, Label label, Label label1, int i) {
119: }
120:
121: public void visitLineNumber(int i, Label label) {
122: }
123:
124: public void visitMaxs(int i, int i1) {
125: }
126:
127: public void visitEnd() {
128: }
129: }
|