Package org.freud.analysed.classbytecode.method.instruction

Examples of org.freud.analysed.classbytecode.method.instruction.StaticOperandStack


    public void visitLabel(final org.objectweb.asm.Label asmLabel) {
        final Label label = declareLabel(asmLabel);
        label.declare(instructionList.size());
        final String handledType = label.getHandledType();
        if (handledType != null) {
            currentOperandStack = new StaticOperandStack(handledType, currentOperandStack, null);
        }
    }
View Full Code Here


        switch (frameType) {
            case F_SAME:
                currentOperandStack = AbstractOperandStack.EMPTY_STACK;
                break;
            case F_SAME1:
                currentOperandStack = new StaticOperandStack(getTypeFromFrame(stack[0]), AbstractOperandStack.EMPTY_STACK, null);
                break;
            case F_APPEND:
                currentOperandStack = AbstractOperandStack.EMPTY_STACK;
                for (int i = 0; i < nLocal; i++) {
                    currentLocals.add(getTypeFromFrame(local[i]));
                }
                break;
            case F_CHOP:
                currentOperandStack = AbstractOperandStack.EMPTY_STACK;
                currentLocals = currentLocals.subList(0, currentLocals.size() - nLocal);
                break;
            case F_FULL:
                currentLocals = new ArrayList<String>();
                for (int i = 0; i < nLocal; i++) {
                    currentLocals.add(getTypeFromFrame(local[i]));

                }
                currentOperandStack = AbstractOperandStack.EMPTY_STACK;
                for (int i = 0; i < nStack; i++) {
                    currentOperandStack = new StaticOperandStack(getTypeFromFrame(stack[i]), currentOperandStack, null);
                }
                break;
            case F_NEW:
                break;
        }
View Full Code Here

TOP

Related Classes of org.freud.analysed.classbytecode.method.instruction.StaticOperandStack

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.