Home | History | Annotate | Download | only in apilint

Lines Matching defs:Method

79 class Method():
94 for r in ["method", "public", "protected", "static", "final", "deprecated", "abstract"]:
195 clazz.ctors.append(Method(clazz, line, raw, blame))
196 elif raw.startswith(" method"):
197 clazz.methods.append(Method(clazz, line, raw, blame))
288 """Try catching malformed method names, like Foo() or getMTU()."""
295 warn(clazz, m, "S1", "Method names with acronyms should be getMtu() instead of getMTU()")
297 error(clazz, m, "S1", "Method name must start with lowercase char")
317 error(clazz, m, "L1", "Callback method names must be onFoo() style")
324 If only a single method, it must match class name:
333 error(clazz, m, "L1", "Listener method names must be onFoo() style")
338 error(clazz, m, "L1", "Single listener method name must match class name")
482 error(clazz, m, "L2", "Missing unregister method")
486 error(clazz, m, "L2", "Missing register method")
495 error(clazz, m, "L2", "Missing remove method")
499 error(clazz, m, "L2", "Missing add method")
598 warn(clazz, None, None, "Missing build() method")
650 warn(clazz, m, "FW6", "Method return type violates package layering")
654 warn(clazz, m, "FW6", "Method argument type violates package layering")
670 error(clazz, m, "M6", "Symmetric method for %s must be named %s" % (trigger, expected))
814 """Verifies that method overloads add new arguments at the end."""
846 warn(clazz, m, "M2", "Expected common arguments [%s] at beginning of overloaded method" % (", ".join(common_args)))
1057 error(prev_clazz, test, None, "Method removed or incompatible change")