MCPcopy Create free account
hub / github.com/ReadyTalk/avian / countMethods

Method countMethods

src/classpath-openjdk.cpp:2336–2348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2334}
2335
2336unsigned countMethods(Thread* t, GcClass* c, bool publicOnly)
2337{
2338 GcArray* table = cast<GcArray>(t, c->methodTable());
2339 unsigned count = 0;
2340 for (unsigned i = 0, j = classDeclaredMethodCount(t, c); i < j; ++i) {
2341 GcMethod* vmMethod = cast<GcMethod>(t, table->body()[i]);
2342 if (((not publicOnly) or (vmMethod->flags() & ACC_PUBLIC))
2343 and vmMethod->name()->body()[0] != '<') {
2344 ++count;
2345 }
2346 }
2347 return count;
2348}
2349
2350unsigned countFields(Thread* t, GcClass* c, bool publicOnly)
2351{

Callers

nothing calls this directly

Calls 3

bodyMethod · 0.80
flagsMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected