Lines Matching refs:clazz
58 def __init__(self, clazz, line, raw, blame): argument
59 self.clazz = clazz
87 def __init__(self, clazz, line, raw, blame): argument
88 self.clazz = clazz
181 clazz = None
198 clazz = Class(pkg, line, raw, blame)
199 api[clazz.fullname] = clazz
201 clazz.ctors.append(Method(clazz, line, raw, blame))
203 clazz.methods.append(Method(clazz, line, raw, blame))
205 clazz.fields.append(Field(clazz, line, raw, blame))
227 def __init__(self, sig, clazz, detail, error, rule, msg): argument
240 self.line = clazz.line
241 blame = clazz.blame
246 dump += "\n in " + repr(clazz)
247 dump += "\n in " + repr(clazz.pkg)
260 def _fail(clazz, detail, error, rule, msg): argument
264 sig = "%s-%s-%s" % (clazz.fullname, repr(detail), msg)
267 failures[sig] = Failure(sig, clazz, detail, error, rule, msg)
270 def warn(clazz, detail, rule, msg): argument
271 _fail(clazz, detail, False, rule, msg)
273 def error(clazz, detail, rule, msg): argument
274 _fail(clazz, detail, True, rule, msg)
300 for clazz in next_api.values():
301 if "@Deprecated " in clazz.raw and not clazz.fullname in prev_api:
302 error(clazz, None, None, "Found API deprecation at birth")
304 if "@Deprecated " in clazz.raw: continue
306 for i in clazz.ctors + clazz.methods + clazz.fields:
308 error(clazz, i, None, "Found API deprecation at birth " + i.ident)