MCPcopy Index your code
hub / github.com/apache/groovy / isPrivate

Method isPrivate

src/main/java/groovy/lang/MetaClassImpl.java:4091–4093  ·  view source on GitHub ↗
(MetaMethod method, Class instanceKlazz)

Source from the content-addressed store, hash-verified

4089 }
4090
4091 private static boolean isPrivate(MetaMethod method, Class instanceKlazz) {
4092 return method.isPrivate() || (method.isPackagePrivate() && !inSamePackage(method.getDeclaringClass().getTheClass(), instanceKlazz));
4093 }
4094
4095 /**
4096 * Returns subclass-scoped meta methods contributed by specialized meta classes.

Callers 1

findOwnMethodMethod · 0.95

Calls 5

inSamePackageMethod · 0.80
isPrivateMethod · 0.65
isPackagePrivateMethod · 0.65
getTheClassMethod · 0.65
getDeclaringClassMethod · 0.45

Tested by

no test coverage detected