use of org.freud.analysed.classbytecode.method.instruction.MethodInvocationInstruction in project freud by LMAX-Exchange.
the class AsmMethod method visitMethodInsn.
public void visitMethodInsn(final int opcode, final String owner, final String name, final String desc) {
final Matcher matcher = METHOD_DESC_PATTERN.matcher(desc);
if (matcher.matches()) {
final String argsAsString = matcher.group(1);
final ArrayList<String> argsContainer = new ArrayList<String>();
String returnType = matcher.group(2);
parseArgs(argsAsString, argsContainer);
String[] args = argsContainer.toArray(new String[argsContainer.size()]);
final Instruction instruction = new MethodInvocationInstruction(instructionList.size(), OPCODES_ARRAY[opcode], currentLineNumber, "L" + owner + ";", name, args, returnType);
updateCurrentState(instruction);
}
}
Aggregations