Lines Matching refs:methods
49 /** The set of methods to stub out. */
51 /** All classes to output as-is, except if they have native methods. */
65 /** A map { FQCN => set { method names } } of methods to rewrite as delegates.
82 // Create the map/set of methods to change to delegates
91 Set<String> methods = mDelegateMethods.get(className);
92 if (methods == null) {
93 methods = new HashSet<String>();
94 mDelegateMethods.put(className, methods);
96 methods.add(methodName);
100 Set<String> methods = mDelegateMethods.get(className);
101 if (methods == null) {
102 methods = new HashSet<String>();
103 mDelegateMethods.put(className, methods);
105 methods.add(DelegateClassAdapter.ALL_NATIVES);
174 /** Sets the map of classes to output as-is, except if they have native methods */
184 /** Gets the map of classes to output as-is, except if they have native methods */
276 * 1- For "mock" dependencies classes, we want to remove all code from methods and replace
277 * by a stub. Native methods must be implemented with this stub too. Abstract methods are
279 * Native methods must be made non-final, non-private.
281 * 2- For "keep" classes, we want to rewrite all native methods as indicated above.
282 * If a class has native methods, it must also be made non-private, non-final.
284 * Note that unfortunately static methods cannot be changed to non-static (since static and
324 // known to have no native methods, just skip this step.
362 * Returns true if a class has any native methods.