public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { if (requiredAttributeVisitor != null) { codeAttribute.accept(clazz, method, requiredAttributeVisitor); } }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { markConstant(clazz, codeAttribute.u2attributeNameIndex); // Mark the constant pool entries referenced by the instructions, // by the exceptions, and by the attributes. codeAttribute.instructionsAccept(clazz, method, this); codeAttribute.exceptionsAccept(clazz, method, this); codeAttribute.attributesAccept(clazz, method, this); }
public static CodeAttributeOptimizationInfo getCodeAttributeOptimizationInfo(CodeAttribute codeAttribute) { return (CodeAttributeOptimizationInfo)codeAttribute.getVisitorInfo(); }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { clean(codeAttribute); codeAttribute.exceptionsAccept(clazz, method, this); codeAttribute.attributesAccept(clazz, method, this); }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { // Initially, the code attribute editor doesn't contain any changes. codeAttributeEditor.reset(codeAttribute.u4codeLength); // Remap the variables of the instructions. codeAttribute.instructionsAccept(clazz, method, this); // Apply the code atribute editor. codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); // Remap the variables of the attributes. codeAttribute.attributesAccept(clazz, method, this); }
new CodeAttribute(constantAdder.addConstant(clazz, codeAttribute.u2attributeNameIndex), codeAttribute.u2maxStack, codeAttribute.u2maxLocals, codeAttribute.instructionsAccept(clazz, method, new InstructionAdder(targetClass, codeAttribute.exceptionsAccept(clazz, method, new ExceptionInfoAdder(targetClass, codeAttribute.attributesAccept(clazz, method, new AttributeAdder(targetClass,
new CodeAttribute(0, 0, 0, 0, code, 0, null, 0, null), codeLength, instructionWriter);
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { codeAttribute.instructionsAccept(clazz, method, instructionVisitor); } }
codeAttribute.instructionAccept(clazz, method, offset, this); codeAttribute.exceptionsAccept(clazz, method, this);
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { // Change the references of the attributes. codeAttribute.attributesAccept(clazz, method, this); }
codeAttribute.getAttribute(clazz, ClassConstants.ATTR_LineNumberTable) == null) codeAttribute.attributesAccept(clazz, method, this);
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { codeAttribute.exceptionsAccept(clazz, method, exceptionInfoVisitor); } }
public static void setCodeAttributeOptimizationInfo(CodeAttribute codeAttribute) { codeAttribute.setVisitorInfo(new CodeAttributeOptimizationInfo()); }
/** * Returns the line number range of the given class member as "m:n", * if it can find it, or <code>null</code> otherwise. */ public String getLineNumberRange(Clazz clazz) { CodeAttribute codeAttribute = (CodeAttribute)getAttribute(clazz, ClassConstants.ATTR_Code); if (codeAttribute == null) { return null; } LineNumberTableAttribute lineNumberTableAttribute = (LineNumberTableAttribute)codeAttribute.getAttribute(clazz, ClassConstants.ATTR_LineNumberTable); if (lineNumberTableAttribute == null) { return null; } return "" + lineNumberTableAttribute.getLineNumber(0) + ":" + lineNumberTableAttribute.getLineNumber(Integer.MAX_VALUE); }
new CodeAttribute(constantAdder.addConstant(clazz, codeAttribute.u2attributeNameIndex), codeAttribute.u2maxStack, codeAttribute.u2maxLocals, codeAttribute.instructionsAccept(clazz, method, new InstructionAdder(targetClass, codeAttribute.exceptionsAccept(clazz, method, new ExceptionInfoAdder(targetClass, if (codeAttribute.getAttribute(clazz, ClassConstants.ATTR_LineNumberTable) == null) codeAttribute.attributesAccept(clazz, method, new AttributeAdder(targetClass,
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { clean(codeAttribute); codeAttribute.exceptionsAccept(clazz, method, this); codeAttribute.attributesAccept(clazz, method, this); }
new CodeAttribute(0, 0, 0, 0, code, 0, null, 0, null), codeLength, instructionWriter);
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { codeAttribute.instructionsAccept(clazz, method, instructionVisitor); } }
codeAttribute.instructionAccept(clazz, method, offset, this); codeAttribute.exceptionsAccept(clazz, method, this);
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { // Fix the attributes. codeAttribute.attributesAccept(clazz, method, this); }