List of usage examples for org.aspectj.apache.bcel.classfile LocalVariable getName
public final String getName()
From source file:org.caesarj.mixer.intern.ClassModifyingVisitor.java
License:Open Source License
public void visitLocalVariable(LocalVariable variable) { // Change the type of the local variable this if (variable.getName().equals("this")) { int index = variable.getSignatureIndex(); ConstantPool cp = variable.getConstantPool(); Constant newSignature = new ConstantUtf8(new ObjectType(newClassName).getSignature()); cp.setConstant(index, newSignature); }//from w w w .ja va2s. co m super.visitLocalVariable(variable); }