@Test public void testVisitFieldTypeAnnotation_unsupportedByDefault() { Printer printer = new EmptyPrinter(Opcodes.ASM7); Executable visitFieldTypeAnnotation = () -> printer.visitFieldTypeAnnotation(0, null, null, false); Exception exception = assertThrows(UnsupportedOperationException.class, visitFieldTypeAnnotation); assertEquals(UNSUPPORTED_OPERATION_MESSAGE, exception.getMessage()); }
public Printer visitFieldTypeAnnotation( final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION); }
Printer { public Printer visitFieldTypeAnnotation( final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION); } }
Printer { public Printer visitFieldTypeAnnotation( final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION); } protected  Printer(final int api); }
Printer { public Printer visitFieldTypeAnnotation( final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION); } protected  Printer(final int api); abstract void visit(
      int version,
      int access,
      String name,
      String signature,
      String superName,
      String[] interfaces); abstract void visitSource(String source, String debug); Printer visitModule(final String name, final int access, final String version); void visitNestHost(final String nestHost); abstract void visitOuterClass(String owner, String name, String descriptor); abstract Printer visitClassAnnotation(String descriptor, boolean visible); Printer visitClassTypeAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitClassAttribute(Attribute attribute); void visitNestMember(final String nestMember); abstract void visitInnerClass(String name, String outerName, String innerName, int access); abstract Printer visitField(
      int access, String name, String descriptor, String signature, Object value); abstract Printer visitMethod(
      int access, String name, String descriptor, String signature, String[] exceptions); abstract void visitClassEnd(); void visitMainClass(final String mainClass); void visitPackage(final String packaze); void visitRequire(final String module, final int access, final String version); void visitExport(final String packaze, final int access, final String... modules); void visitOpen(final String packaze, final int access, final String... modules); void visitUse(final String service); void visitProvide(final String service, final String... providers); void visitModuleEnd(); abstract void visit(String name, Object value); abstract void visitEnum(String name, String descriptor, String value); abstract Printer visitAnnotation(String name, String descriptor); abstract Printer visitArray(String name); abstract void visitAnnotationEnd(); abstract Printer visitFieldAnnotation(String descriptor, boolean visible); Printer visitFieldTypeAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitFieldAttribute(Attribute attribute); abstract void visitFieldEnd(); void visitParameter(final String name, final int access); abstract Printer visitAnnotationDefault(); abstract Printer visitMethodAnnotation(String descriptor, boolean visible); Printer visitMethodTypeAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); Printer visitAnnotableParameterCount(final int parameterCount, final boolean visible); abstract Printer visitParameterAnnotation(
      int parameter, String descriptor, boolean visible); abstract void visitMethodAttribute(Attribute attribute); abstract void visitCode(); abstract void visitFrame(
      int type, int numLocal, Object[] local, int numStack, Object[] stack); abstract void visitInsn(int opcode); abstract void visitIntInsn(int opcode, int operand); abstract void visitVarInsn(int opcode, int var); abstract void visitTypeInsn(int opcode, String type); abstract void visitFieldInsn(int opcode, String owner, String name, String descriptor); @Deprecated void visitMethodInsn(
      final int opcode, final String owner, final String name, final String descriptor); void visitMethodInsn(
      final int opcode,
      final String owner,
      final String name,
      final String descriptor,
      final boolean isInterface); abstract void visitInvokeDynamicInsn(
      String name,
      String descriptor,
      Handle bootstrapMethodHandle,
      Object... bootstrapMethodArguments); abstract void visitJumpInsn(int opcode, Label label); abstract void visitLabel(Label label); abstract void visitLdcInsn(Object value); abstract void visitIincInsn(int var, int increment); abstract void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels); abstract void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels); abstract void visitMultiANewArrayInsn(String descriptor, int numDimensions); Printer visitInsnAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitTryCatchBlock(Label start, Label end, Label handler, String type); Printer visitTryCatchAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitLocalVariable(
      String name, String descriptor, String signature, Label start, Label end, int index); Printer visitLocalVariableAnnotation(
      final int typeRef,
      final TypePath typePath,
      final Label[] start,
      final Label[] end,
      final int[] index,
      final String descriptor,
      final boolean visible); abstract void visitLineNumber(int line, Label start); abstract void visitMaxs(int maxStack, int maxLocals); abstract void visitMethodEnd(); List<Object> getText(); void print(final PrintWriter printWriter); static void appendString(final StringBuilder stringBuilder, final String string); }
Printer { public Printer visitFieldTypeAnnotation( final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION); } protected  Printer(final int api); abstract void visit(
      int version,
      int access,
      String name,
      String signature,
      String superName,
      String[] interfaces); abstract void visitSource(String source, String debug); Printer visitModule(final String name, final int access, final String version); void visitNestHost(final String nestHost); abstract void visitOuterClass(String owner, String name, String descriptor); abstract Printer visitClassAnnotation(String descriptor, boolean visible); Printer visitClassTypeAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitClassAttribute(Attribute attribute); void visitNestMember(final String nestMember); abstract void visitInnerClass(String name, String outerName, String innerName, int access); abstract Printer visitField(
      int access, String name, String descriptor, String signature, Object value); abstract Printer visitMethod(
      int access, String name, String descriptor, String signature, String[] exceptions); abstract void visitClassEnd(); void visitMainClass(final String mainClass); void visitPackage(final String packaze); void visitRequire(final String module, final int access, final String version); void visitExport(final String packaze, final int access, final String... modules); void visitOpen(final String packaze, final int access, final String... modules); void visitUse(final String service); void visitProvide(final String service, final String... providers); void visitModuleEnd(); abstract void visit(String name, Object value); abstract void visitEnum(String name, String descriptor, String value); abstract Printer visitAnnotation(String name, String descriptor); abstract Printer visitArray(String name); abstract void visitAnnotationEnd(); abstract Printer visitFieldAnnotation(String descriptor, boolean visible); Printer visitFieldTypeAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitFieldAttribute(Attribute attribute); abstract void visitFieldEnd(); void visitParameter(final String name, final int access); abstract Printer visitAnnotationDefault(); abstract Printer visitMethodAnnotation(String descriptor, boolean visible); Printer visitMethodTypeAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); Printer visitAnnotableParameterCount(final int parameterCount, final boolean visible); abstract Printer visitParameterAnnotation(
      int parameter, String descriptor, boolean visible); abstract void visitMethodAttribute(Attribute attribute); abstract void visitCode(); abstract void visitFrame(
      int type, int numLocal, Object[] local, int numStack, Object[] stack); abstract void visitInsn(int opcode); abstract void visitIntInsn(int opcode, int operand); abstract void visitVarInsn(int opcode, int var); abstract void visitTypeInsn(int opcode, String type); abstract void visitFieldInsn(int opcode, String owner, String name, String descriptor); @Deprecated void visitMethodInsn(
      final int opcode, final String owner, final String name, final String descriptor); void visitMethodInsn(
      final int opcode,
      final String owner,
      final String name,
      final String descriptor,
      final boolean isInterface); abstract void visitInvokeDynamicInsn(
      String name,
      String descriptor,
      Handle bootstrapMethodHandle,
      Object... bootstrapMethodArguments); abstract void visitJumpInsn(int opcode, Label label); abstract void visitLabel(Label label); abstract void visitLdcInsn(Object value); abstract void visitIincInsn(int var, int increment); abstract void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels); abstract void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels); abstract void visitMultiANewArrayInsn(String descriptor, int numDimensions); Printer visitInsnAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitTryCatchBlock(Label start, Label end, Label handler, String type); Printer visitTryCatchAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); abstract void visitLocalVariable(
      String name, String descriptor, String signature, Label start, Label end, int index); Printer visitLocalVariableAnnotation(
      final int typeRef,
      final TypePath typePath,
      final Label[] start,
      final Label[] end,
      final int[] index,
      final String descriptor,
      final boolean visible); abstract void visitLineNumber(int line, Label start); abstract void visitMaxs(int maxStack, int maxLocals); abstract void visitMethodEnd(); List<Object> getText(); void print(final PrintWriter printWriter); static void appendString(final StringBuilder stringBuilder, final String string); static final String[] OPCODES; static final String[] TYPES; static final String[] HANDLE_TAG; final List<Object> text; }