@Override public void visitMethod(Method obj) { currentVertex = findVertex(getXMethod()); super.visitMethod(obj); }
@Override public void sawOpcode(int seen) { switch (seen) { case Const.INVOKESTATIC: case Const.INVOKEVIRTUAL: case Const.INVOKEINTERFACE: case Const.INVOKESPECIAL: MethodDescriptor called = getMethodDescriptorOperand(); XMethod calledXMethod = XFactory.createXMethod(called); InterproceduralCallGraphVertex calledVertex = findVertex(calledXMethod); callGraph.createEdge(currentVertex, calledVertex); break; default: break; } }
@Override public void visitMethod(Method obj) { currentVertex = findVertex(getXMethod()); super.visitMethod(obj); }
@Override public void sawOpcode(int seen) { switch (seen) { case Constants.INVOKESTATIC: case Constants.INVOKEVIRTUAL: case Constants.INVOKEINTERFACE: case Constants.INVOKESPECIAL: MethodDescriptor called = getMethodDescriptorOperand(); XMethod calledXMethod = XFactory.createXMethod(called); InterproceduralCallGraphVertex calledVertex = findVertex(calledXMethod); callGraph.createEdge(currentVertex, calledVertex); break; default: break; } }