public void visitLocalVariable( final String name, final String desc, final String signature, final Label start, final Label end, final int index) { mv.visitLocalVariable(name, desc, signature, start, end, index); }
/** * Visits a local variable declaration. * * @param name the name of a local variable. * @param descriptor the type descriptor of this local variable. * @param signature the type signature of this local variable. May be {@literal null} if the local * variable type does not use generic types. * @param start the first instruction corresponding to the scope of this local variable * (inclusive). * @param end the last instruction corresponding to the scope of this local variable (exclusive). * @param index the local variable's index. * @throws IllegalArgumentException if one of the labels has not already been visited by this * visitor (by the {@link #visitLabel} method). */ public void visitLocalVariable( final String name, final String descriptor, final String signature, final Label start, final Label end, final int index) { if (mv != null) { mv.visitLocalVariable(name, descriptor, signature, start, end, index); } }
/** * Visits a local variable declaration. * * @param name * the name of a local variable. * @param desc * the type descriptor of this local variable. * @param signature * the type signature of this local variable. May be * <tt>null</tt> if the local variable type does not use generic * types. * @param start * the first instruction corresponding to the scope of this local * variable (inclusive). * @param end * the last instruction corresponding to the scope of this local * variable (exclusive). * @param index * the local variable's index. * @throws IllegalArgumentException * if one of the labels has not already been visited by this * visitor (by the {@link #visitLabel visitLabel} method). */ public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) { if (mv != null) { mv.visitLocalVariable(name, desc, signature, start, end, index); } }
@Override public void visitLocalVariable(final String name, final String desc, final String signature, final Label start, final Label end, final int index) { p.visitLocalVariable(name, desc, signature, start, end, index); super.visitLocalVariable(name, desc, signature, start, end, index); }
@Override public final void begin(final String element, final Attributes attrs) { String name = attrs.getValue("name"); String desc = attrs.getValue("desc"); String signature = attrs.getValue("signature"); Label start = getLabel(attrs.getValue("start")); Label end = getLabel(attrs.getValue("end")); int var = Integer.parseInt(attrs.getValue("var")); getCodeVisitor().visitLocalVariable(name, desc, signature, start, end, var); } }
@Override public void visitLocalVariable(final String name, final String desc, final String signature, final Label start, final Label end, final int index) { int newIndex = remap(index, Type.getType(desc)); mv.visitLocalVariable(name, desc, signature, start, end, newIndex); }
@Override public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) { super.visitLocalVariable(name, remapper.mapDesc(desc), remapper.mapSignature(signature, true), start, end, index); }
/** * Makes the given visitor visit this local variable declaration. * * @param mv * a method visitor. */ public void accept(final MethodVisitor mv) { mv.visitLocalVariable(name, desc, signature, start.getLabel(), end.getLabel(), index); } }
mv.visitLocalVariable(name, desc, signature, start, end, index);
@Override public void visitLocalVariable(final String name, final String desc, final String signature, final Label start, final Label end, final int index) { checkStartCode(); checkEndCode(); checkUnqualifiedName(version, name, "name"); checkDesc(desc, false); checkLabel(start, true, "start label"); checkLabel(end, true, "end label"); checkUnsignedShort(index, "Invalid variable index"); int s = labels.get(start).intValue(); int e = labels.get(end).intValue(); if (e < s) { throw new IllegalArgumentException( "Invalid start and end labels (end must be greater than start)"); } super.visitLocalVariable(name, desc, signature, start, end, index); }
final Label l1 = new Label(); mv.visitLabel( l1 ); mv.visitLocalVariable( "this", "L" + className + ";", null, l1, 0 ); mv.visitLocalVariable( "workingMemory", Type.getDescriptor( InternalWorkingMemory.class ), null, l1, 1 ); mv.visitLocalVariable( "object", Type.getDescriptor( Object.class ), null,
mv.visitLocalVariable( "this", "L" + className + ";", null, l1, 0 ); mv.visitLocalVariable( "bean", Type.getDescriptor( Object.class ), null, l1, 1 ); mv.visitLocalVariable( "value", Type.getDescriptor( fieldType ), null,
final Label l2 = new Label(); mv.visitLabel( l2 ); mv.visitLocalVariable( "this", "L" + className + ";", null, l2, 0 ); mv.visitLocalVariable( "index", Type.getDescriptor( int.class ), null, l2, 1 ); mv.visitLocalVariable( "fieldType", Type.getDescriptor( Class.class ), null, l2, 2 ); mv.visitLocalVariable( "valueType", Type.getDescriptor( ValueType.class ), null,
l1 = new Label(); mv.visitLabel( l1 ); mv.visitLocalVariable( "this", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null, Label l11 = new Label(); mv.visitLabel( l11 ); mv.visitLocalVariable( field.getName(), BuildUtils.getTypeDescriptor( field.getTypeName() ), null,
l1 = new Label(); mv.visitLabel( l1 ); mv.visitLocalVariable( "this", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null,
lastLabel = new Label(); mv.visitLabel( lastLabel ); mv.visitLocalVariable( "this", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null, lastLabel, 0 ); mv.visitLocalVariable( "buf", Type.getDescriptor( StringBuilder.class ), null,
lastLabel = new Label(); mv.visitLabel( lastLabel ); mv.visitLocalVariable( "this", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null, lastLabel, 0 ); mv.visitLocalVariable( "hash", Type.getDescriptor( int.class ), null,
l1 = new Label(); mv.visitLabel( l1 ); mv.visitLocalVariable( "this", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null,
lastLabel = new Label(); mv.visitLabel( lastLabel ); mv.visitLocalVariable( "this", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null, lastLabel, 0 ); mv.visitLocalVariable( "obj", Type.getDescriptor( Object.class ), null, lastLabel, 1 ); mv.visitLocalVariable( "other", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null,
l1 = new Label(); mv.visitLabel( l1 ); mv.visitLocalVariable( "this", BuildUtils.getTypeDescriptor( classDef.getClassName() ), null,