public boolean matches(CFGNode node) { if (node instanceof MethodCall) { MethodCall methodCall = (MethodCall) node; if (methodCall.name().equals("[]=") && methodCall.arguments().size() == 1) return true; } return false; }
public static VariableReference storedVar(CFGNode node) { if (node instanceof MethodCall) { MethodCall methodCall = (MethodCall) node; if (methodCall.name().equals("[]=")) { return methodCall.arguments().get(0); } } throw new IllegalArgumentException("array store without argument"); }