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

Method isMarkedInternal

src/main/java/groovy/lang/MetaClassImpl.java:2498–2512  ·  view source on GitHub ↗
(final MetaBeanProperty mbp)

Source from the content-addressed store, hash-verified

2496 }
2497
2498 private static boolean isMarkedInternal(final MetaBeanProperty mbp) {
2499 CachedField field = mbp.getField();
2500 if (field != null && field.isAnnotationPresent(Internal.class)) {
2501 return true;
2502 }
2503 MetaMethod getter = mbp.getGetter();
2504 if (getter instanceof CachedMethod cm && cm.getAnnotation(Internal.class) != null) {
2505 return true;
2506 }
2507 MetaMethod setter = mbp.getSetter();
2508 if (setter instanceof CachedMethod cm && cm.getAnnotation(Internal.class) != null) {
2509 return true;
2510 }
2511 return false;
2512 }
2513
2514 /**
2515 * return null if nothing valid has been found, a MetaMethod (for getter always the case if not null) or

Callers 1

getPropertiesMethod · 0.95

Calls 5

isAnnotationPresentMethod · 0.95
getAnnotationMethod · 0.80
getFieldMethod · 0.45
getGetterMethod · 0.45
getSetterMethod · 0.45

Tested by

no test coverage detected