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

Method classDeclaredMethodCount

src/classpath-openjdk.cpp:2323–2334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2321#endif // AVIAN_OPENJDK_SRC
2322
2323unsigned classDeclaredMethodCount(Thread* t, GcClass* c)
2324{
2325 GcClassAddendum* addendum = c->addendum();
2326 if (addendum) {
2327 int count = addendum->declaredMethodCount();
2328 if (count >= 0) {
2329 return count;
2330 }
2331 }
2332 GcArray* table = cast<GcArray>(t, c->methodTable());
2333 return table == 0 ? 0 : table->length();
2334}
2335
2336unsigned countMethods(Thread* t, GcClass* c, bool publicOnly)
2337{

Callers

nothing calls this directly

Calls 2

declaredMethodCountMethod · 0.80
lengthMethod · 0.65

Tested by

no test coverage detected