Code example for SetMultimap

Methods: putputAll

0
                "setInt", 
                "setLong", 
                "setShort" 
        ); 
        interceptedMethods = HashMultimap.create();
        interceptedMethods.put("java.lang.reflect.Method", "invoke");
        interceptedMethods.putAll("java.lang.reflect.Field", fieldMethods);
        interceptedMethods.put("java.lang.reflect.Constructor", "newInstance");
        interceptedMethods.put("java.lang.Class", "newInstance");
    } 
 
    public int visit(LineContext context) throws Exception {
        String className = context.getClassName();
        Set<String> methods = interceptedMethods.get(className);
        if (methods != null && methods.isEmpty() == false) {
            String name = getName(context.getConstPool(), context.getVal());
            if (name != null && methods.contains(name)) {
                Bytecode bytecode = new Bytecode(context.getConstPool());
                String desc = getDesc(context.getConstPool(), context.getVal());
                if (context.getOp() == CodeIterator.INVOKEVIRTUAL) {
Contextual code suggestions in your IDE  Get Codota for Java