Search in sources :

Example 1 with Frame

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

the class TransformAccessArrayField method getTopType.

private String getTopType(int pos) throws BadBytecode {
    Frame frame = getFrame(pos);
    if (frame == null)
        return null;
    CtClass clazz = frame.peek().getCtClass();
    return clazz != null ? Descriptor.toJvmName(clazz) : null;
}
Also used : CtClass(org.hotswap.agent.javassist.CtClass) Frame(org.hotswap.agent.javassist.bytecode.analysis.Frame)

Aggregations

CtClass (org.hotswap.agent.javassist.CtClass)1 Frame (org.hotswap.agent.javassist.bytecode.analysis.Frame)1