Search in sources :

Example 16 with Instruction

use of org.freud.analysed.classbytecode.method.instruction.Instruction in project freud by LMAX-Exchange.

the class AsmMethod method visitInsn.

public void visitInsn(final int opcode) {
    final Instruction instruction = new Instruction(instructionList.size(), OPCODES_ARRAY[opcode], currentLineNumber);
    updateCurrentState(instruction);
}
Also used : Instruction(org.freud.analysed.classbytecode.method.instruction.Instruction) ReferenceOperandInstruction(org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction) VarInstruction(org.freud.analysed.classbytecode.method.instruction.VarInstruction) JumpInstruction(org.freud.analysed.classbytecode.method.instruction.JumpInstruction) ConstInstruction(org.freud.analysed.classbytecode.method.instruction.ConstInstruction) FieldInstruction(org.freud.analysed.classbytecode.method.instruction.FieldInstruction) IntOperandInstruction(org.freud.analysed.classbytecode.method.instruction.IntOperandInstruction) MethodInvocationInstruction(org.freud.analysed.classbytecode.method.instruction.MethodInvocationInstruction)

Aggregations

Instruction (org.freud.analysed.classbytecode.method.instruction.Instruction)16 ConstInstruction (org.freud.analysed.classbytecode.method.instruction.ConstInstruction)10 FieldInstruction (org.freud.analysed.classbytecode.method.instruction.FieldInstruction)10 IntOperandInstruction (org.freud.analysed.classbytecode.method.instruction.IntOperandInstruction)10 JumpInstruction (org.freud.analysed.classbytecode.method.instruction.JumpInstruction)10 MethodInvocationInstruction (org.freud.analysed.classbytecode.method.instruction.MethodInvocationInstruction)10 ReferenceOperandInstruction (org.freud.analysed.classbytecode.method.instruction.ReferenceOperandInstruction)10 VarInstruction (org.freud.analysed.classbytecode.method.instruction.VarInstruction)10 AbstractInstructionVisitor (org.freud.analysed.classbytecode.method.instruction.AbstractInstructionVisitor)6 Opcode (org.freud.analysed.classbytecode.method.instruction.Opcode)4 ClassByteCodeMethod (org.freud.analysed.classbytecode.method.ClassByteCodeMethod)3 FreudExtendedMatcher (org.freud.java.matcher.FreudExtendedMatcher)3 Description (org.hamcrest.Description)3 OperandStack (org.freud.analysed.classbytecode.method.instruction.OperandStack)2 ArrayList (java.util.ArrayList)1 Matcher (java.util.regex.Matcher)1 CastOperandStack (org.freud.analysed.classbytecode.method.instruction.CastOperandStack)1 Label (org.freud.analysed.classbytecode.method.instruction.Label)1 Matcher (org.hamcrest.Matcher)1 Type (org.objectweb.asm.Type)1