All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.datanucleus.enhancer.EnhancerPropertyGetterAdapter Maven / Gradle / Ivy

Go to download

DataNucleus Core provides the primary components of a heterogenous Java persistence solution. It supports persistence API's being layered on top of the core functionality.

There is a newer version: 6.0.8
Show newest version
/**********************************************************************
Copyright (c) 2007 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Contributors:
    ...
**********************************************************************/
package org.datanucleus.enhancer;

import org.datanucleus.enhancement.Persistable;
import org.datanucleus.enhancer.asm.AnnotationVisitor;
import org.datanucleus.enhancer.asm.Attribute;
import org.datanucleus.enhancer.asm.ClassVisitor;
import org.datanucleus.enhancer.asm.Handle;
import org.datanucleus.enhancer.asm.Label;
import org.datanucleus.enhancer.asm.MethodVisitor;
import org.datanucleus.enhancer.asm.Opcodes;
import org.datanucleus.enhancer.asm.Type;
import org.datanucleus.enhancer.asm.TypePath;
import org.datanucleus.metadata.AbstractClassMetaData;
import org.datanucleus.metadata.AbstractMemberMetaData;
import org.datanucleus.metadata.PropertyMetaData;
import org.datanucleus.util.ClassUtils;
import org.datanucleus.util.Localiser;

/**
 * Adapter for property getter methods in persistence-enabled classes.
 * This adapter processes the getXXX method and
 * 
    *
  • Creates dnGetXXX with the same code as was present in getXXX
  • *
  • Changes getXXX to have the code below
  • *
* When detachable this will be (CHECK_READ variant) *
 * YYY getZZZ()
 * {
 *     if (dnFlags > 0 && dnStateManager != null && !dnStateManager.isLoaded(this, 0))
 *         return (Integer) dnStateManager.getObjectField(this, 0, dnGetXXX());
 *     if (dnIsDetached() && !((BitSet) dnDetachedState[2]).get(0))
 *         throw new DetachedFieldAccessException
 *             ("You have just attempted to access property \"id\" yet this field was not detached ...");
 *     return dnGetXXX();
 * }
 * 
* and when not detachable *
 * YYY getZZZ()
 * {
 *     if (dnFlags > 0 && dnStateManager != null && !dnStateManager.isLoaded(this, 0))
 *         return (Integer) dnStateManager.getObjectField(this, 0, dnGetXXX());
 *     return dnGetXXX();
 * }
 * 
* There are other variants for MEDIATE_READ and NORMAL_READ */ public class EnhancerPropertyGetterAdapter extends MethodVisitor { /** The enhancer for this class. */ protected ClassEnhancer enhancer; /** Name for the method being adapted. */ protected String methodName; /** Descriptor for the method being adapted. */ protected String methodDescriptor; /** MetaData for the property. */ protected AbstractMemberMetaData mmd; /** Visitor for the dnGetXXX method. */ protected MethodVisitor visitor = null; /** * Constructor for the method adapter. * @param mv MethodVisitor * @param enhancer ClassEnhancer for the class with the method * @param methodName Name of the method * @param methodDesc Method descriptor * @param mmd MetaData for the property * @param cv ClassVisitor */ public EnhancerPropertyGetterAdapter(MethodVisitor mv, ClassEnhancer enhancer, String methodName, String methodDesc, AbstractMemberMetaData mmd, ClassVisitor cv) { super(ClassEnhancer.ASM_API_VERSION, mv); this.enhancer = enhancer; this.methodName = methodName; this.methodDescriptor = methodDesc; this.mmd = mmd; // Generate dnGetXXX method to include code that this getXXX currently has int access = (mmd.isPublic() ? Opcodes.ACC_PUBLIC : 0) | (mmd.isProtected() ? Opcodes.ACC_PROTECTED : 0) | (mmd.isPrivate() ? Opcodes.ACC_PRIVATE : 0) | (mmd.isAbstract() ? Opcodes.ACC_ABSTRACT : 0); this.visitor = cv.visitMethod(access, enhancer.getNamer().getGetMethodPrefixMethodName() + mmd.getName(), methodDesc, null, null); } /** * Method called at the end of visiting the getXXX method. * This is used to add the dnGetXXX method with the same code as is present originally in the getXXX method. */ public void visitEnd() { visitor.visitEnd(); if (DataNucleusEnhancer.LOGGER.isDebugEnabled()) { String msg = ClassMethod.getMethodAdditionMessage(enhancer.getNamer().getGetMethodPrefixMethodName() + mmd.getName(), mmd.getType(), null, null); DataNucleusEnhancer.LOGGER.debug(Localiser.msg("005019", msg)); } if (!mmd.isAbstract()) { // Property is not abstract so generate the getXXX method to use the dnGetXXX we just added generateGetXXXMethod(mv, mmd, enhancer.getASMClassName(), enhancer.getClassDescriptor(), false, enhancer.getNamer()); } } /** * Convenience method to use the MethodVisitor to generate the code for the method getXXX() for the property with the specified MetaData. * @param mv MethodVisitor * @param mmd MetaData for the property * @param asmClassName ASM class name for the owning class * @param asmClassDesc ASM descriptor for the owning class * @param detachListener true if the generate code must support DetachListener * @param namer Namer for methods etc */ public static void generateGetXXXMethod(MethodVisitor mv, AbstractMemberMetaData mmd, String asmClassName, String asmClassDesc, boolean detachListener, EnhancementNamer namer) { String[] argNames = new String[] {"this"}; String fieldTypeDesc = Type.getDescriptor(mmd.getType()); mv.visitCode(); AbstractClassMetaData cmd = mmd.getAbstractClassMetaData(); if ((mmd.getPersistenceFlags() & Persistable.MEDIATE_READ) == Persistable.MEDIATE_READ) { // MEDIATE_READ - see method GetViaMediate Label startLabel = new Label(); mv.visitLabel(startLabel); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getStateManagerFieldName(), "L" + namer.getStateManagerAsmClassName() + ";"); Label l1 = new Label(); mv.visitJumpInsn(Opcodes.IFNULL, l1); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getStateManagerFieldName(), "L" + namer.getStateManagerAsmClassName() + ";"); mv.visitVarInsn(Opcodes.ALOAD, 0); EnhanceUtils.addBIPUSHToMethod(mv, mmd.getFieldId()); if (cmd.getPersistableSuperclass() != null) { mv.visitFieldInsn(Opcodes.GETSTATIC, asmClassName, namer.getInheritedFieldCountFieldName(), "I"); mv.visitInsn(Opcodes.IADD); } mv.visitMethodInsn(Opcodes.INVOKEINTERFACE, namer.getStateManagerAsmClassName(), "isLoaded", "(L" + namer.getPersistableAsmClassName() + ";I)Z", true); mv.visitJumpInsn(Opcodes.IFNE, l1); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getStateManagerFieldName(), "L" + namer.getStateManagerAsmClassName() + ";"); mv.visitVarInsn(Opcodes.ALOAD, 0); EnhanceUtils.addBIPUSHToMethod(mv, mmd.getFieldId()); if (cmd.getPersistableSuperclass() != null) { mv.visitFieldInsn(Opcodes.GETSTATIC, asmClassName, namer.getInheritedFieldCountFieldName(), "I"); mv.visitInsn(Opcodes.IADD); } mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, asmClassName, namer.getGetMethodPrefixMethodName() + mmd.getName(), "()" + fieldTypeDesc, false); String methodName = "get" + EnhanceUtils.getTypeNameForPersistableMethod(mmd.getType()) + "Field"; String argTypeDesc = fieldTypeDesc; if (methodName.equals("getObjectField")) { argTypeDesc = EnhanceUtils.CD_Object; } mv.visitMethodInsn(Opcodes.INVOKEINTERFACE, namer.getStateManagerAsmClassName(), methodName, "(L" + namer.getPersistableAsmClassName() + ";I" + argTypeDesc + ")" + argTypeDesc, true); if (methodName.equals("getObjectField")) { // Cast any object fields to the correct type mv.visitTypeInsn(Opcodes.CHECKCAST, mmd.getTypeName().replace('.', '/')); } EnhanceUtils.addReturnForType(mv, mmd.getType()); mv.visitLabel(l1); mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null); if (cmd.isDetachable()) { // "if (objPC.dnIsDetached() != false && ((BitSet) objPC.dnDetachedState[2]).get(5) != true)" mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, asmClassName, namer.getIsDetachedMethodName(), "()Z", false); Label l4 = new Label(); mv.visitJumpInsn(Opcodes.IFEQ, l4); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getDetachedStateFieldName(), "[Ljava/lang/Object;"); mv.visitInsn(Opcodes.ICONST_2); mv.visitInsn(Opcodes.AALOAD); mv.visitTypeInsn(Opcodes.CHECKCAST, "java/util/BitSet"); EnhanceUtils.addBIPUSHToMethod(mv, mmd.getFieldId()); if (cmd.getPersistableSuperclass() != null) { mv.visitFieldInsn(Opcodes.GETSTATIC, asmClassName, namer.getInheritedFieldCountFieldName(), "I"); mv.visitInsn(Opcodes.IADD); } mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/util/BitSet", "get", "(I)Z", false); mv.visitJumpInsn(Opcodes.IFNE, l4); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getDetachedStateFieldName(), "[Ljava/lang/Object;"); mv.visitInsn(Opcodes.ICONST_3); mv.visitInsn(Opcodes.AALOAD); mv.visitTypeInsn(Opcodes.CHECKCAST, "java/util/BitSet"); EnhanceUtils.addBIPUSHToMethod(mv, mmd.getFieldId()); if (cmd.getPersistableSuperclass() != null) { mv.visitFieldInsn(Opcodes.GETSTATIC, asmClassName, namer.getInheritedFieldCountFieldName(), "I"); mv.visitInsn(Opcodes.IADD); } mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/util/BitSet", "get", "(I)Z", false); mv.visitJumpInsn(Opcodes.IFNE, l4); if (detachListener) { mv.visitMethodInsn(Opcodes.INVOKESTATIC, namer.getDetachListenerAsmClassName(), "getInstance", "()L" + namer.getDetachListenerAsmClassName() + ";", false); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitLdcInsn(mmd.getName()); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, namer.getDetachListenerAsmClassName(), "undetachedFieldAccess", "(Ljava/lang/Object;Ljava/lang/String;)V", false); } else { // "throw new JDODetachedFieldAccessException(...)" mv.visitTypeInsn(Opcodes.NEW, namer.getDetachedFieldAccessExceptionAsmClassName()); mv.visitInsn(Opcodes.DUP); mv.visitLdcInsn(Localiser.msg("005026", mmd.getName())); mv.visitMethodInsn(Opcodes.INVOKESPECIAL, namer.getDetachedFieldAccessExceptionAsmClassName(), "", "(Ljava/lang/String;)V", false); mv.visitInsn(Opcodes.ATHROW); } mv.visitLabel(l4); mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null); } mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, asmClassName, namer.getGetMethodPrefixMethodName() + mmd.getName(), "()" + fieldTypeDesc, false); EnhanceUtils.addReturnForType(mv, mmd.getType()); Label endLabel = new Label(); mv.visitLabel(endLabel); mv.visitLocalVariable(argNames[0], asmClassDesc, null, startLabel, endLabel, 0); mv.visitMaxs(4, 1); } else if ((mmd.getPersistenceFlags() & Persistable.CHECK_READ) == Persistable.CHECK_READ) { // CHECK_READ - see method GetViaCheck Label startLabel = new Label(); mv.visitLabel(startLabel); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getFlagsFieldName(), "B"); Label l1 = new Label(); mv.visitJumpInsn(Opcodes.IFLE, l1); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getStateManagerFieldName(), "L" + namer.getStateManagerAsmClassName() + ";"); mv.visitJumpInsn(Opcodes.IFNULL, l1); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getStateManagerFieldName(), "L" + namer.getStateManagerAsmClassName() + ";"); mv.visitVarInsn(Opcodes.ALOAD, 0); EnhanceUtils.addBIPUSHToMethod(mv, mmd.getFieldId()); if (cmd.getPersistableSuperclass() != null) { mv.visitFieldInsn(Opcodes.GETSTATIC, asmClassName, namer.getInheritedFieldCountFieldName(), "I"); mv.visitInsn(Opcodes.IADD); } mv.visitMethodInsn(Opcodes.INVOKEINTERFACE, namer.getStateManagerAsmClassName(), "isLoaded", "(L" + namer.getPersistableAsmClassName() + ";I)Z", true); mv.visitJumpInsn(Opcodes.IFNE, l1); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getStateManagerFieldName(), "L" + namer.getStateManagerAsmClassName() + ";"); mv.visitVarInsn(Opcodes.ALOAD, 0); EnhanceUtils.addBIPUSHToMethod(mv, mmd.getFieldId()); if (cmd.getPersistableSuperclass() != null) { mv.visitFieldInsn(Opcodes.GETSTATIC, asmClassName, namer.getInheritedFieldCountFieldName(), "I"); mv.visitInsn(Opcodes.IADD); } mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, asmClassName, namer.getGetMethodPrefixMethodName() + mmd.getName(), "()" + fieldTypeDesc, false); String methodName = "get" + EnhanceUtils.getTypeNameForPersistableMethod(mmd.getType()) + "Field"; String argTypeDesc = fieldTypeDesc; if (methodName.equals("getObjectField")) { argTypeDesc = EnhanceUtils.CD_Object; } mv.visitMethodInsn(Opcodes.INVOKEINTERFACE, namer.getStateManagerAsmClassName(), methodName, "(L" + namer.getPersistableAsmClassName() + ";I" + argTypeDesc + ")" + argTypeDesc, true); if (methodName.equals("getObjectField")) { // Cast any object fields to the correct type mv.visitTypeInsn(Opcodes.CHECKCAST, mmd.getTypeName().replace('.', '/')); } EnhanceUtils.addReturnForType(mv, mmd.getType()); mv.visitLabel(l1); mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null); if (cmd.isDetachable()) { // "if (objPC.dnIsDetached() != false && ((BitSet) objPC.dnDetachedState[2]).get(5) != true)" mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, asmClassName, namer.getIsDetachedMethodName(), "()Z", false); Label l4 = new Label(); mv.visitJumpInsn(Opcodes.IFEQ, l4); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitFieldInsn(Opcodes.GETFIELD, asmClassName, namer.getDetachedStateFieldName(), "[Ljava/lang/Object;"); mv.visitInsn(Opcodes.ICONST_2); mv.visitInsn(Opcodes.AALOAD); mv.visitTypeInsn(Opcodes.CHECKCAST, "java/util/BitSet"); EnhanceUtils.addBIPUSHToMethod(mv, mmd.getFieldId()); if (cmd.getPersistableSuperclass() != null) { mv.visitFieldInsn(Opcodes.GETSTATIC, asmClassName, namer.getInheritedFieldCountFieldName(), "I"); mv.visitInsn(Opcodes.IADD); } mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/util/BitSet", "get", "(I)Z", false); mv.visitJumpInsn(Opcodes.IFNE, l4); if (detachListener) { mv.visitMethodInsn(Opcodes.INVOKESTATIC, namer.getDetachListenerAsmClassName(), "getInstance", "()L" + namer.getDetachListenerAsmClassName() + ";", false); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitLdcInsn(mmd.getName()); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, namer.getDetachListenerAsmClassName(), "undetachedFieldAccess", "(Ljava/lang/Object;Ljava/lang/String;)V", false); } else { // "throw new JDODetachedFieldAccessException(...)" mv.visitTypeInsn(Opcodes.NEW, namer.getDetachedFieldAccessExceptionAsmClassName()); mv.visitInsn(Opcodes.DUP); mv.visitLdcInsn(Localiser.msg("005026", mmd.getName())); mv.visitMethodInsn(Opcodes.INVOKESPECIAL, namer.getDetachedFieldAccessExceptionAsmClassName(), "", "(Ljava/lang/String;)V", false); mv.visitInsn(Opcodes.ATHROW); } mv.visitLabel(l4); mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null); } mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, asmClassName, namer.getGetMethodPrefixMethodName() + mmd.getName(), "()" + fieldTypeDesc, false); EnhanceUtils.addReturnForType(mv, mmd.getType()); Label endLabel = new Label(); mv.visitLabel(endLabel); mv.visitLocalVariable(argNames[0], asmClassDesc, null, startLabel, endLabel, 0); mv.visitMaxs(4, 1); } else { // NORMAL - see method GetNormal Label startLabel = new Label(); mv.visitLabel(startLabel); mv.visitVarInsn(Opcodes.ALOAD, 0); mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, asmClassName, namer.getGetMethodPrefixMethodName() + mmd.getName(), "()" + fieldTypeDesc, false); EnhanceUtils.addReturnForType(mv, mmd.getType()); Label endLabel = new Label(); mv.visitLabel(endLabel); mv.visitLocalVariable(argNames[0], asmClassDesc, null, startLabel, endLabel, 0); mv.visitMaxs(1, 1); } mv.visitEnd(); } public AnnotationVisitor visitAnnotation(String arg0, boolean arg1) { // Keep any annotations on the getXXX method, so use "mv" return mv.visitAnnotation(arg0, arg1); } // IMPORTANT : BELOW HERE WE MUST INTERCEPT ALL OTHER METHODS AND RELAY TO "visitor" public AnnotationVisitor visitAnnotationDefault() { return visitor.visitAnnotationDefault(); } public void visitParameter(String name, int access) { visitor.visitParameter(name, access); } public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) { return visitor.visitTypeAnnotation(typeRef, typePath, desc, visible); } public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { if (mmd instanceof PropertyMetaData) { // Check for any calls to getters/setters of properties that are from superclass(es) String ownerClassName = owner.replace('/', '.'); AbstractClassMetaData cmd = enhancer.getClassMetaData(); if (!enhancer.getASMClassName().equals(owner)) { String propName = ClassUtils.getFieldNameForJavaBeanGetter(name); if (propName != null) { boolean callingOverriddenSuperclassMethod = false; while (cmd.getSuperAbstractClassMetaData() != null) { cmd = cmd.getSuperAbstractClassMetaData(); if (cmd.getFullClassName().equals(ownerClassName)) { AbstractMemberMetaData theMmd = cmd.getMetaDataForMember(mmd.getName()); if (theMmd != null) { callingOverriddenSuperclassMethod = true; break; } } } if (callingOverriddenSuperclassMethod) { // Call dnGet{propName} in owner instead of "get{propName}" String redirectMethodName = enhancer.getNamer().getGetMethodPrefixMethodName() + propName; visitor.visitMethodInsn(opcode, owner, redirectMethodName, desc, itf); return; } } } } visitor.visitMethodInsn(opcode, owner, name, desc, itf); } public void visitInvokeDynamicInsn(String name, String desc, Handle bsm, Object... bsmArgs) { visitor.visitInvokeDynamicInsn(name, desc, bsm, bsmArgs); } public AnnotationVisitor visitInsnAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) { return visitor.visitInsnAnnotation(typeRef, typePath, desc, visible); } public AnnotationVisitor visitTryCatchAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) { return visitor.visitTryCatchAnnotation(typeRef, typePath, desc, visible); } public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) { return visitor.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible); } public void visitAttribute(Attribute arg0) { visitor.visitAttribute(arg0); } public void visitCode() { visitor.visitCode(); } public void visitFieldInsn(int opcode, String owner, String name, String desc) { visitor.visitFieldInsn(opcode, owner, name, desc); } public void visitFrame(int arg0, int arg1, Object[] arg2, int arg3, Object[] arg4) { visitor.visitFrame(arg0, arg1, arg2, arg3, arg4); } public void visitIincInsn(int arg0, int arg1) { visitor.visitIincInsn(arg0, arg1); } public void visitInsn(int opcode) { visitor.visitInsn(opcode); } public void visitIntInsn(int arg0, int arg1) { visitor.visitIntInsn(arg0, arg1); } public void visitJumpInsn(int arg0, Label arg1) { visitor.visitJumpInsn(arg0, arg1); } public void visitLabel(Label arg0) { visitor.visitLabel(arg0); } public void visitLdcInsn(Object arg0) { visitor.visitLdcInsn(arg0); } public void visitLineNumber(int arg0, Label arg1) { visitor.visitLineNumber(arg0, arg1); } public void visitLocalVariable(String arg0, String arg1, String arg2, Label arg3, Label arg4, int arg5) { visitor.visitLocalVariable(arg0, arg1, arg2, arg3, arg4, arg5); } public void visitLookupSwitchInsn(Label arg0, int[] arg1, Label[] arg2) { visitor.visitLookupSwitchInsn(arg0, arg1, arg2); } public void visitMaxs(int arg0, int arg1) { visitor.visitMaxs(arg0, arg1); } @Deprecated public void visitMethodInsn(int opcode, String owner, String name, String desc) { visitor.visitMethodInsn(opcode, owner, name, desc); } public void visitMultiANewArrayInsn(String arg0, int arg1) { visitor.visitMultiANewArrayInsn(arg0, arg1); } public AnnotationVisitor visitParameterAnnotation(int arg0, String arg1, boolean arg2) { return visitor.visitParameterAnnotation(arg0, arg1, arg2); } public void visitTableSwitchInsn(int arg0, int arg1, Label arg2, Label... arg3) { visitor.visitTableSwitchInsn(arg0, arg1, arg2, arg3); } public void visitTryCatchBlock(Label arg0, Label arg1, Label arg2, String arg3) { visitor.visitTryCatchBlock(arg0, arg1, arg2, arg3); } public void visitTypeInsn(int arg0, String arg1) { visitor.visitTypeInsn(arg0, arg1); } public void visitVarInsn(int arg0, int arg1) { visitor.visitVarInsn(arg0, arg1); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy