Lines Matching defs:method
36 * {@link LayoutlibDelegate}, and look for a matching method in the delegate (named the same
38 * If the original native method is not static, then we make sure the delegate method also
88 // with @LayoutlibDelegate, look for a matching method in the delegate class.
89 // The annotation is automatically added by layoutlib_create when it replace a method
101 // if the method is not static, then the class is added as the first parameter
122 // try to load the method with the given parameter types.
129 String.format("Delegate method %1$s.%2$s does not match the " +
130 "corresponding framework method which returns %3$s",
136 // check that the method has the annotation
139 String.format("Delegate method %1$s for class %2$s does not have the " +
145 // check that the method is static
149 "Delegate method %1$s for class %2$s is not static",
155 // add the method as checked.
166 // match for a method in the original class.
167 // If not, this means the method is a delegate for a method that either doesn't exist
178 "Delegate method %1$s.%2$s is not used anymore and must be removed",
186 private String getMethodName(Method method) {
187 return getMethodName(method, method.getParameterTypes());
190 private String getMethodName(Method method, Class<?>[] parameters) {
192 StringBuilder sb = new StringBuilder(method.getName() + "(");