Example usage for org.objectweb.asm.tree.analysis AnalyzerException AnalyzerException

List of usage examples for org.objectweb.asm.tree.analysis AnalyzerException AnalyzerException

Introduction

In this page you can find the example usage for org.objectweb.asm.tree.analysis AnalyzerException AnalyzerException.

Prototype

public AnalyzerException(final AbstractInsnNode insn, final String message) 

Source Link

Document

Constructs a new AnalyzerException .

Usage

From source file:edu.ubc.mirrors.holograms.FrameVerifier.java

License:Open Source License

@Override
public FrameValue copyOperation(AbstractInsnNode insn, FrameValue value) throws AnalyzerException {
    if (value.isUninitialized()) {
        int opcode = insn.getOpcode();
        if (opcode == ALOAD || opcode == ASTORE || (DUP <= opcode && opcode <= SWAP)) {
            return value;
        } else {/*from   w w w.  j a  v  a 2s . c om*/
            throw new AnalyzerException(insn, "value");
        }
    }

    return FrameValue.fromBasicValue(simplerVerifier.copyOperation(insn, value.getBasicValue()));
}