Пример #1
0
 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;
 }
Пример #2
0
 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");
 }