private void removeSuperclassMethods(final Class<?> type, final MethodRemover methodRemover) { if (type == null) { return; } if (!JavaClassUtils.isJavaClass(type)) { removeSuperclassMethods(type.getSuperclass(), methodRemover); return; } final Method[] methods = type.getMethods(); for (int j = 0; j < methods.length; j++) { final Method method = methods[j]; methodRemover.removeMethod(method); } }
private void removeSuperclassMethods(final Class<?> type, final MethodRemover methodRemover) { if (type == null) { return; } if (!JavaClassUtils.isJavaClass(type)) { removeSuperclassMethods(type.getSuperclass(), methodRemover); return; } final Method[] methods = type.getMethods(); for (int j = 0; j < methods.length; j++) { final Method method = methods[j]; methodRemover.removeMethod(method); } }
/** * If no title or toString can be used then will use Facets provided by {@link FallbackFacetFactory} * instead. */ @Override public boolean process(final Class<?> type, final MethodRemover methodRemover, final FacetHolder facetHolder) { Method method = findMethod(type, OBJECT, TITLE, String.class, null); if (method != null) { methodRemover.removeMethod(method); return FacetUtil.addFacet(new TitleFacetViaTitleMethod(method, facetHolder)); } try { method = findMethod(type, OBJECT, TO_STRING, String.class, null); if (method == null) { return false; } if (JavaClassUtils.isJavaClass(method.getDeclaringClass())) { return false; } methodRemover.removeMethod(method); FacetUtil.addFacet(new TitleFacetViaToStringMethod(method, facetHolder)); return false; } catch (final Exception e) { return false; } } }
/** * If no title or toString can be used then will use Facets provided by {@link FallbackFacetFactory} * instead. */ @Override public boolean process(final Class<?> type, final MethodRemover methodRemover, final FacetHolder facetHolder) { Method method = findMethod(type, OBJECT, TITLE, String.class, null); if (method != null) { methodRemover.removeMethod(method); return FacetUtil.addFacet(new TitleFacetViaTitleMethod(method, facetHolder)); } try { method = findMethod(type, OBJECT, TO_STRING, String.class, null); if (method == null) { return false; } if (JavaClassUtils.isJavaClass(method.getDeclaringClass())) { return false; } methodRemover.removeMethod(method); FacetUtil.addFacet(new TitleFacetViaToStringMethod(method, facetHolder)); return false; } catch (final Exception e) { return false; } } }
final boolean skipIntrospection = JavaClassUtils.isJavaClass(cls) || isValueClass(cls); if (skipIntrospection) { if (LOG.isDebugEnabled()) {
final boolean skipIntrospection = JavaClassUtils.isJavaClass(cls) || isValueClass(cls); if (skipIntrospection) { if (LOG.isDebugEnabled()) {