Search in sources :

Example 1 with AttributeInfo

use of org.hotswap.agent.javassist.bytecode.AttributeInfo in project HotswapAgent by HotswapProjects.

the class FieldInitLink method setAttribute.

public void setAttribute(String name, byte[] data) {
    checkModify();
    ClassFile cf = getClassFile2();
    cf.addAttribute(new AttributeInfo(cf.getConstPool(), name, data));
}
Also used : AttributeInfo(org.hotswap.agent.javassist.bytecode.AttributeInfo) ClassFile(org.hotswap.agent.javassist.bytecode.ClassFile)

Aggregations

AttributeInfo (org.hotswap.agent.javassist.bytecode.AttributeInfo)1 ClassFile (org.hotswap.agent.javassist.bytecode.ClassFile)1