XLogUtils { static int getClassNameSectionSize(String className) { if (className == null || className.length() == 0) { return 0; } int count = 0; for (int i = 0; i < className.length(); i++) { if ('.' == className.charAt(i)) { count++; } } return count + 1; } private  XLogUtils(); static Set<String> getRemainingClassNames(Set<Class<?>> classes,
            Set<String> classNames); static boolean shouldLogMember(List<XLogMethod> xLogMethods, Member member); static boolean filterResult(String className, XLogSetting xLogSetting); static List<String> getPkgPrefixesForCoarseMatch(List<String> classNames,
            int pkgSectionSize); static List<String> getPkgPrefixesForCoarseMatchXLogMethods(List<XLogMethod> xLogMethods,
            int pkgSectionSize); static final int TYPE_METHOD; static final int TYPE_CONSTRUCTOR; static final String PKG_NAME; static final String CLASS_NAME; static final String FIELD_NAME_METHODS; static final String FIELD_NAME_CLASSES; }
@Test public void testGetClassNameSectionSize() { assertThat(XLogUtils.getClassNameSectionSize(""), is(0)); assertThat(XLogUtils.getClassNameSectionSize(null), is(0)); assertThat(XLogUtils.getClassNameSectionSize("com"), is(1)); assertThat(XLogUtils.getClassNameSectionSize("com.promegu"), is(2)); assertThat(XLogUtils.getClassNameSectionSize("com.promegu.xlog.base"), is(4)); }