# Class EmptyVisitor

java.lang.Object
org.apache.bcel.classfile.EmptyVisitor

All Implemented Interfaces:
  `Visitor`

Direct Known Subclasses:
  `BCELifier, StringRepresentation`

public class EmptyVisitor extends Object implements Visitor
Visitor with empty method bodies, can be extended and used in conjunction with the DescendingVisitor class, for example. By courtesy of David Spencer.

See Also:
  - `DescendingVisitor`

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `EmptyVisitor()`
  Constructs an EmptyVisitor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `visitAnnotation(Annotations obj)`
  Visits an Annotations attribute.
  `void`
  `visitAnnotationDefault(AnnotationDefault obj)`
  Visits an AnnotationDefault attribute.
  `void`
  `visitAnnotationEntry(AnnotationEntry obj)`
  Visits an AnnotationEntry.
  `void`
  `visitBootstrapMethods(BootstrapMethods obj)`
  Visits a BootstrapMethods attribute.
  `void`
  `visitCode(Code obj)`
  Visits a Code attribute.
  `void`
  `visitCodeException(CodeException obj)`
  Visits a CodeException.
  `void`
  `visitConstantClass(ConstantClass obj)`
  Visits a ConstantClass.
  `void`
  `visitConstantDouble(ConstantDouble obj)`
  Visits a ConstantDouble.
  `void`
  `visitConstantDynamic(ConstantDynamic obj)`
  Visits a ConstantDynamic.
  `void`
  `visitConstantFieldref(ConstantFieldref obj)`
  Visits a ConstantFieldref.
  `void`
  `visitConstantFloat(ConstantFloat obj)`
  Visits a ConstantFloat.
  `void`
  `visitConstantInteger(ConstantInteger obj)`
  Visits a ConstantInteger.
  `void`
  `visitConstantInterfaceMethodref(ConstantInterfaceMethodref obj)`
  Visits a ConstantInterfaceMethodref.
  `void`
  `visitConstantInvokeDynamic(ConstantInvokeDynamic obj)`
  Visits a ConstantInvokeDynamic.
  `void`
  `visitConstantLong(ConstantLong obj)`
  Visits a ConstantLong.
  `void`
  `visitConstantMethodHandle(ConstantMethodHandle constantMethodHandle)`
  Visits a ConstantMethodHandle.
  `void`
  `visitConstantMethodref(ConstantMethodref obj)`
  Visits a ConstantMethodref.
  `void`
  `visitConstantMethodType(ConstantMethodType obj)`
  Visits a ConstantMethodType.
  `void`
  `visitConstantModule(ConstantModule constantModule)`
  Visits a ConstantModule.
  `void`
  `visitConstantNameAndType(ConstantNameAndType obj)`
  Visits a ConstantNameAndType.
  `void`
  `visitConstantPackage(ConstantPackage constantPackage)`
  Visits a ConstantPackage.
  `void`
  `visitConstantPool(ConstantPool obj)`
  Visits a ConstantPool.
  `void`
  `visitConstantString(ConstantString obj)`
  Visits a ConstantString.
  `void`
  `visitConstantUtf8(ConstantUtf8 obj)`
  Visits a ConstantUtf8.
  `void`
  `visitConstantValue(ConstantValue obj)`
  Visits a ConstantValue attribute.
  `void`
  `visitDeprecated(Deprecated obj)`
  Visits a Deprecated attribute.
  `void`
  `visitEnclosingMethod(EnclosingMethod obj)`
  Visits an EnclosingMethod attribute.
  `void`
  `visitExceptionTable(ExceptionTable obj)`
  Visits an ExceptionTable attribute.
  `void`
  `visitField(Field obj)`
  Visits a Field.
  `void`
  `visitInnerClass(InnerClass obj)`
  Visits an InnerClass.
  `void`
  `visitInnerClasses(InnerClasses obj)`
  Visits an InnerClasses attribute.
  `void`
  `visitJavaClass(JavaClass obj)`
  Visits a JavaClass.
  `void`
  `visitLineNumber(LineNumber obj)`
  Visits a LineNumber.
  `void`
  `visitLineNumberTable(LineNumberTable obj)`
  Visits a LineNumberTable attribute.
  `void`
  `visitLocalVariable(LocalVariable obj)`
  Visits a LocalVariable.
  `void`
  `visitLocalVariableTable(LocalVariableTable obj)`
  Visits a LocalVariableTable attribute.
  `void`
  `visitLocalVariableTypeTable(LocalVariableTypeTable obj)`
  Visits a LocalVariableTypeTable attribute.
  `void`
  `visitMethod(Method obj)`
  Visits a Method.
  `void`
  `visitMethodParameter(MethodParameter obj)`
  Visits a MethodParameter.
  `void`
  `visitMethodParameters(MethodParameters obj)`
  Visits a MethodParameters attribute.
  `void`
  `visitModule(Module obj)`
  Visits a Module attribute.
  `void`
  `visitModuleExports(ModuleExports obj)`
  Visits a ModuleExports entry.
  `void`
  `visitModuleMainClass(ModuleMainClass obj)`
  Visits a ModuleMainClass attribute.
  `void`
  `visitModuleOpens(ModuleOpens obj)`
  Visits a ModuleOpens entry.
  `void`
  `visitModulePackages(ModulePackages obj)`
  Visits a ModulePackages attribute.
  `void`
  `visitModuleProvides(ModuleProvides obj)`
  Visits a ModuleProvides entry.
  `void`
  `visitModuleRequires(ModuleRequires obj)`
  Visits a ModuleRequires entry.
  `void`
  `visitNestHost(NestHost obj)`
  Visits a NestHost attribute.
  `void`
  `visitNestMembers(NestMembers obj)`
  Visits a NestMembers attribute.
  `void`
  `visitParameterAnnotation(ParameterAnnotations obj)`
  Visits a ParameterAnnotations attribute.
  `void`
  `visitParameterAnnotationEntry(ParameterAnnotationEntry parameterAnnotationEntry)`
  Visits a ParameterAnnotationEntry.
  `void`
  `visitSignature(Signature obj)`
  Visits a Signature attribute.
  `void`
  `visitSourceFile(SourceFile obj)`
  Visits a SourceFile attribute.
  `void`
  `visitStackMap(StackMap obj)`
  Visits a StackMap attribute.
  `void`
  `visitStackMapEntry(StackMapEntry obj)`
  Visits a StackMapEntry.
  `void`
  `visitStackMapType(StackMapType obj)`
  Visits a `StackMapType` object.
  `void`
  `visitSynthetic(Synthetic obj)`
  Visits a Synthetic attribute.
  `void`
  `visitUnknown(Unknown obj)`
  Visits an Unknown attribute.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface Visitor

  `visitRecord, visitRecordComponent`

- ## Constructor Details

  - ### EmptyVisitor

    protected EmptyVisitor()
    Constructs an EmptyVisitor.

- ## Method Details

  - ### visitAnnotation

    public void visitAnnotation(Annotations obj)
    Description copied from interface: `Visitor`
    Visits an Annotations attribute.
    Specified by:
      `visitAnnotation` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.0

  - ### visitAnnotationDefault

    public void visitAnnotationDefault(AnnotationDefault obj)
    Description copied from interface: `Visitor`
    Visits an AnnotationDefault attribute.
    Specified by:
      `visitAnnotationDefault` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.0

  - ### visitAnnotationEntry

    public void visitAnnotationEntry(AnnotationEntry obj)
    Description copied from interface: `Visitor`
    Visits an AnnotationEntry.
    Specified by:
      `visitAnnotationEntry` in interface `Visitor`
    Parameters:
      `obj` - the annotation entry.
    Since:
      6.0

  - ### visitBootstrapMethods

    public void visitBootstrapMethods(BootstrapMethods obj)
    Description copied from interface: `Visitor`
    Visits a BootstrapMethods attribute.
    Specified by:
      `visitBootstrapMethods` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.0

  - ### visitCode

    public void visitCode(Code obj)
    Description copied from interface: `Visitor`
    Visits a Code attribute.
    Specified by:
      `visitCode` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitCodeException

    public void visitCodeException(CodeException obj)
    Description copied from interface: `Visitor`
    Visits a CodeException.
    Specified by:
      `visitCodeException` in interface `Visitor`
    Parameters:
      `obj` - the exception.

  - ### visitConstantClass

    public void visitConstantClass(ConstantClass obj)
    Description copied from interface: `Visitor`
    Visits a ConstantClass.
    Specified by:
      `visitConstantClass` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantDouble

    public void visitConstantDouble(ConstantDouble obj)
    Description copied from interface: `Visitor`
    Visits a ConstantDouble.
    Specified by:
      `visitConstantDouble` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantDynamic

    public void visitConstantDynamic(ConstantDynamic obj)
    Description copied from interface: `Visitor`
    Visits a ConstantDynamic.
    Specified by:
      `visitConstantDynamic` in interface `Visitor`
    Parameters:
      `obj` - the constant.
    Since:
      6.3

  - ### visitConstantFieldref

    public void visitConstantFieldref(ConstantFieldref obj)
    Description copied from interface: `Visitor`
    Visits a ConstantFieldref.
    Specified by:
      `visitConstantFieldref` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantFloat

    public void visitConstantFloat(ConstantFloat obj)
    Description copied from interface: `Visitor`
    Visits a ConstantFloat.
    Specified by:
      `visitConstantFloat` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantInteger

    public void visitConstantInteger(ConstantInteger obj)
    Description copied from interface: `Visitor`
    Visits a ConstantInteger.
    Specified by:
      `visitConstantInteger` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantInterfaceMethodref

    public void visitConstantInterfaceMethodref(ConstantInterfaceMethodref obj)
    Description copied from interface: `Visitor`
    Visits a ConstantInterfaceMethodref.
    Specified by:
      `visitConstantInterfaceMethodref` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantInvokeDynamic

    public void visitConstantInvokeDynamic(ConstantInvokeDynamic obj)
    Description copied from interface: `Visitor`
    Visits a ConstantInvokeDynamic.
    Specified by:
      `visitConstantInvokeDynamic` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantLong

    public void visitConstantLong(ConstantLong obj)
    Description copied from interface: `Visitor`
    Visits a ConstantLong.
    Specified by:
      `visitConstantLong` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantMethodHandle

    public void visitConstantMethodHandle(ConstantMethodHandle constantMethodHandle)
    Description copied from interface: `Visitor`
    Visits a ConstantMethodHandle.
    Specified by:
      `visitConstantMethodHandle` in interface `Visitor`
    Parameters:
      `constantMethodHandle` - the constant.
    Since:
      6.0

  - ### visitConstantMethodref

    public void visitConstantMethodref(ConstantMethodref obj)
    Description copied from interface: `Visitor`
    Visits a ConstantMethodref.
    Specified by:
      `visitConstantMethodref` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantMethodType

    public void visitConstantMethodType(ConstantMethodType obj)
    Description copied from interface: `Visitor`
    Visits a ConstantMethodType.
    Specified by:
      `visitConstantMethodType` in interface `Visitor`
    Parameters:
      `obj` - the constant.
    Since:
      6.0

  - ### visitConstantModule

    public void visitConstantModule(ConstantModule constantModule)
    Description copied from interface: `Visitor`
    Visits a ConstantModule.
    Specified by:
      `visitConstantModule` in interface `Visitor`
    Parameters:
      `constantModule` - the constant.
    Since:
      6.1

  - ### visitConstantNameAndType

    public void visitConstantNameAndType(ConstantNameAndType obj)
    Description copied from interface: `Visitor`
    Visits a ConstantNameAndType.
    Specified by:
      `visitConstantNameAndType` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantPackage

    public void visitConstantPackage(ConstantPackage constantPackage)
    Description copied from interface: `Visitor`
    Visits a ConstantPackage.
    Specified by:
      `visitConstantPackage` in interface `Visitor`
    Parameters:
      `constantPackage` - the constant.
    Since:
      6.1

  - ### visitConstantPool

    public void visitConstantPool(ConstantPool obj)
    Description copied from interface: `Visitor`
    Visits a ConstantPool.
    Specified by:
      `visitConstantPool` in interface `Visitor`
    Parameters:
      `obj` - the constant pool.

  - ### visitConstantString

    public void visitConstantString(ConstantString obj)
    Description copied from interface: `Visitor`
    Visits a ConstantString.
    Specified by:
      `visitConstantString` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantUtf8

    public void visitConstantUtf8(ConstantUtf8 obj)
    Description copied from interface: `Visitor`
    Visits a ConstantUtf8.
    Specified by:
      `visitConstantUtf8` in interface `Visitor`
    Parameters:
      `obj` - the constant.

  - ### visitConstantValue

    public void visitConstantValue(ConstantValue obj)
    Description copied from interface: `Visitor`
    Visits a ConstantValue attribute.
    Specified by:
      `visitConstantValue` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitDeprecated

    public void visitDeprecated(Deprecated obj)
    Description copied from interface: `Visitor`
    Visits a Deprecated attribute.
    Specified by:
      `visitDeprecated` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitEnclosingMethod

    public void visitEnclosingMethod(EnclosingMethod obj)
    Description copied from interface: `Visitor`
    Visits an EnclosingMethod attribute.
    Specified by:
      `visitEnclosingMethod` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.0

  - ### visitExceptionTable

    public void visitExceptionTable(ExceptionTable obj)
    Description copied from interface: `Visitor`
    Visits an ExceptionTable attribute.
    Specified by:
      `visitExceptionTable` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitField

    public void visitField(Field obj)
    Description copied from interface: `Visitor`
    Visits a Field.
    Specified by:
      `visitField` in interface `Visitor`
    Parameters:
      `obj` - the field.

  - ### visitInnerClass

    public void visitInnerClass(InnerClass obj)
    Description copied from interface: `Visitor`
    Visits an InnerClass.
    Specified by:
      `visitInnerClass` in interface `Visitor`
    Parameters:
      `obj` - the inner class.

  - ### visitInnerClasses

    public void visitInnerClasses(InnerClasses obj)
    Description copied from interface: `Visitor`
    Visits an InnerClasses attribute.
    Specified by:
      `visitInnerClasses` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitJavaClass

    public void visitJavaClass(JavaClass obj)
    Description copied from interface: `Visitor`
    Visits a JavaClass.
    Specified by:
      `visitJavaClass` in interface `Visitor`
    Parameters:
      `obj` - the class.

  - ### visitLineNumber

    public void visitLineNumber(LineNumber obj)
    Description copied from interface: `Visitor`
    Visits a LineNumber.
    Specified by:
      `visitLineNumber` in interface `Visitor`
    Parameters:
      `obj` - the line number.

  - ### visitLineNumberTable

    public void visitLineNumberTable(LineNumberTable obj)
    Description copied from interface: `Visitor`
    Visits a LineNumberTable attribute.
    Specified by:
      `visitLineNumberTable` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitLocalVariable

    public void visitLocalVariable(LocalVariable obj)
    Description copied from interface: `Visitor`
    Visits a LocalVariable.
    Specified by:
      `visitLocalVariable` in interface `Visitor`
    Parameters:
      `obj` - the local variable.

  - ### visitLocalVariableTable

    public void visitLocalVariableTable(LocalVariableTable obj)
    Description copied from interface: `Visitor`
    Visits a LocalVariableTable attribute.
    Specified by:
      `visitLocalVariableTable` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitLocalVariableTypeTable

    public void visitLocalVariableTypeTable(LocalVariableTypeTable obj)
    Description copied from interface: `Visitor`
    Visits a LocalVariableTypeTable attribute.
    Specified by:
      `visitLocalVariableTypeTable` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.0

  - ### visitMethod

    public void visitMethod(Method obj)
    Description copied from interface: `Visitor`
    Visits a Method.
    Specified by:
      `visitMethod` in interface `Visitor`
    Parameters:
      `obj` - the method.

  - ### visitMethodParameter

    public void visitMethodParameter(MethodParameter obj)
    Description copied from interface: `Visitor`
    Visits a MethodParameter.
    Specified by:
      `visitMethodParameter` in interface `Visitor`
    Parameters:
      `obj` - the method parameter.
    Since:
      6.4.0

  - ### visitMethodParameters

    public void visitMethodParameters(MethodParameters obj)
    Description copied from interface: `Visitor`
    Visits a MethodParameters attribute.
    Specified by:
      `visitMethodParameters` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.0

  - ### visitModule

    public void visitModule(Module obj)
    Description copied from interface: `Visitor`
    Visits a Module attribute.
    Specified by:
      `visitModule` in interface `Visitor`
    Parameters:
      `obj` - the module.
    Since:
      6.4.0

  - ### visitModuleExports

    public void visitModuleExports(ModuleExports obj)
    Description copied from interface: `Visitor`
    Visits a ModuleExports entry.
    Specified by:
      `visitModuleExports` in interface `Visitor`
    Parameters:
      `obj` - the module exports.
    Since:
      6.4.0

  - ### visitModuleMainClass

    public void visitModuleMainClass(ModuleMainClass obj)
    Description copied from interface: `Visitor`
    Visits a ModuleMainClass attribute.
    Specified by:
      `visitModuleMainClass` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.4.0

  - ### visitModuleOpens

    public void visitModuleOpens(ModuleOpens obj)
    Description copied from interface: `Visitor`
    Visits a ModuleOpens entry.
    Specified by:
      `visitModuleOpens` in interface `Visitor`
    Parameters:
      `obj` - the module opens.
    Since:
      6.4.0

  - ### visitModulePackages

    public void visitModulePackages(ModulePackages obj)
    Description copied from interface: `Visitor`
    Visits a ModulePackages attribute.
    Specified by:
      `visitModulePackages` in interface `Visitor`
    Parameters:
      `obj` - the module packages.
    Since:
      6.4.0

  - ### visitModuleProvides

    public void visitModuleProvides(ModuleProvides obj)
    Description copied from interface: `Visitor`
    Visits a ModuleProvides entry.
    Specified by:
      `visitModuleProvides` in interface `Visitor`
    Parameters:
      `obj` - the module provides.
    Since:
      6.4.0

  - ### visitModuleRequires

    public void visitModuleRequires(ModuleRequires obj)
    Description copied from interface: `Visitor`
    Visits a ModuleRequires entry.
    Specified by:
      `visitModuleRequires` in interface `Visitor`
    Parameters:
      `obj` - the module requires.
    Since:
      6.4.0

  - ### visitNestHost

    public void visitNestHost(NestHost obj)
    Description copied from interface: `Visitor`
    Visits a NestHost attribute.
    Specified by:
      `visitNestHost` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.4.0

  - ### visitNestMembers

    public void visitNestMembers(NestMembers obj)
    Description copied from interface: `Visitor`
    Visits a NestMembers attribute.
    Specified by:
      `visitNestMembers` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.4.0

  - ### visitParameterAnnotation

    public void visitParameterAnnotation(ParameterAnnotations obj)
    Description copied from interface: `Visitor`
    Visits a ParameterAnnotations attribute.
    Specified by:
      `visitParameterAnnotation` in interface `Visitor`
    Parameters:
      `obj` - the attribute.
    Since:
      6.0

  - ### visitParameterAnnotationEntry

    public void visitParameterAnnotationEntry(ParameterAnnotationEntry parameterAnnotationEntry)
    Description copied from interface: `Visitor`
    Visits a ParameterAnnotationEntry.
    Specified by:
      `visitParameterAnnotationEntry` in interface `Visitor`
    Parameters:
      `parameterAnnotationEntry` - the annotation entry.
    Since:
      6.0

  - ### visitSignature

    public void visitSignature(Signature obj)
    Description copied from interface: `Visitor`
    Visits a Signature attribute.
    Specified by:
      `visitSignature` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitSourceFile

    public void visitSourceFile(SourceFile obj)
    Description copied from interface: `Visitor`
    Visits a SourceFile attribute.
    Specified by:
      `visitSourceFile` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitStackMap

    public void visitStackMap(StackMap obj)
    Description copied from interface: `Visitor`
    Visits a StackMap attribute.
    Specified by:
      `visitStackMap` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitStackMapEntry

    public void visitStackMapEntry(StackMapEntry obj)
    Description copied from interface: `Visitor`
    Visits a StackMapEntry.
    Specified by:
      `visitStackMapEntry` in interface `Visitor`
    Parameters:
      `obj` - the entry.

  - ### visitStackMapType

    public void visitStackMapType(StackMapType obj)
    Visits a `StackMapType` object.
    Specified by:
      `visitStackMapType` in interface `Visitor`
    Parameters:
      `obj` - object to visit.
    Since:
      6.8.0

  - ### visitSynthetic

    public void visitSynthetic(Synthetic obj)
    Description copied from interface: `Visitor`
    Visits a Synthetic attribute.
    Specified by:
      `visitSynthetic` in interface `Visitor`
    Parameters:
      `obj` - the attribute.

  - ### visitUnknown

    public void visitUnknown(Unknown obj)
    Description copied from interface: `Visitor`
    Visits an Unknown attribute.
    Specified by:
      `visitUnknown` in interface `Visitor`
    Parameters:
      `obj` - the attribute.