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

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


    public void visitIntInsn(final int opcodeUsed, final int operand) {
        final Opcode opcode = OPCODES_ARRAY[opcodeUsed];
        final Instruction instruction;
        if (opcode == Opcode.NEWARRAY) {
            instruction = new ReferenceOperandInstruction(instructionList.size(), opcode, currentLineNumber, NEWARRAY_TYPES[operand]);
        }
        else {
            instruction = new IntOperandInstruction(instructionList.size(), opcode, currentLineNumber, operand);
        }
        updateCurrentState(instruction);
View Full Code Here


    }

    public void visitTypeInsn(final int opcodeUsed, final String type) {
        final Opcode opcode = OPCODES_ARRAY[opcodeUsed];
        final String operandType = "L" + type + ";";
        final Instruction instruction = new ReferenceOperandInstruction(instructionList.size(), opcode, currentLineNumber, operandType);
        updateCurrentState(instruction);
    }
View Full Code Here

    }

    public void visitLdcInsn(final Object constant) {
        final Instruction instruction;
        if (constant instanceof Type) {
            instruction = new ReferenceOperandInstruction(instructionList.size(), Opcode.LDC, currentLineNumber, constant.toString());
        }
        else {
            instruction = new ConstInstruction(instructionList.size(), Opcode.LDC, currentLineNumber, constant);
        }
        updateCurrentState(instruction);
View Full Code Here

                break;
        }
    }

    public void visitMultiANewArrayInsn(final String desc, final int dims) {
        final Instruction instruction = new ReferenceOperandInstruction(instructionList.size(), Opcode.MULTIANEWARRAY, currentLineNumber, desc, dims);
        updateCurrentState(instruction);
    }
View Full Code Here

TOP

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

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.