type, ReflectionUtils.withModifier(Modifier.PUBLIC), ReflectionUtils.withPrefix("get")); Set<String> gettersWithValues = getters.stream() .filter(g -> g.getAnnotation(JsonIgnore.class) == null) // Only JSON-serializable fields
for (Method getter : ReflectionUtils.getMethods(rosMessageClass, ReflectionUtils.withPrefix("get")))
for (Method getter : ReflectionUtils.getMethods(rosMessageClass, ReflectionUtils.withPrefix("get")))
@Override protected void applyContractTest(Class<?> entityType) { final Set<Method> injectMethods = ReflectionUtils.getAllMethods(entityType, ReflectionUtils.withPrefix("inject")); for (Method injectMethod : injectMethods) { try { final String desc = desc(entityType, injectMethod); out.println("processing " + desc); out.incrementIndent(); process(entityType, injectMethod); } finally { out.decrementIndent(); } } }
ReflectionUtils.withPrefix("set"), ReflectionUtils.withParametersCount(1), method -> !Iterable.class.isAssignableFrom(method.getParameterTypes()[0]),