Package org.hotswap.agent.javassist.bytecode

Examples of org.hotswap.agent.javassist.bytecode.LocalVariableAttribute


     * @return false if the CodeAttribute does not include a
     * LocalVariableAttribute.
     */
    public boolean recordLocalVariables(org.hotswap.agent.javassist.bytecode.CodeAttribute ca, int pc)
            throws CompileError {
        LocalVariableAttribute va
                = (LocalVariableAttribute)
                ca.getAttribute(LocalVariableAttribute.tag);
        if (va == null)
            return false;

        int n = va.tableLength();
        for (int i = 0; i < n; ++i) {
            int start = va.startPc(i);
            int len = va.codeLength(i);
            if (start <= pc && pc < start + len)
                gen.recordVariable(va.descriptor(i), va.variableName(i),
                        va.index(i), stable);
        }

        return true;
    }
View Full Code Here


     * @return false if the CodeAttribute does not include a
     * LocalVariableAttribute.
     */
    public boolean recordParamNames(org.hotswap.agent.javassist.bytecode.CodeAttribute ca, int numOfLocalVars)
            throws CompileError {
        LocalVariableAttribute va
                = (LocalVariableAttribute)
                ca.getAttribute(LocalVariableAttribute.tag);
        if (va == null)
            return false;

        int n = va.tableLength();
        for (int i = 0; i < n; ++i) {
            int index = va.index(i);
            if (index < numOfLocalVars)
                gen.recordVariable(va.descriptor(i), va.variableName(i),
                        index, stable);
        }

        return true;
    }
View Full Code Here

TOP

Related Classes of org.hotswap.agent.javassist.bytecode.LocalVariableAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.