test_class.declarator: CLASS_NAMES = new ArrayList<String>()
test_class.modifier: static final
test_class.original_string: static final List<String> CLASS_NAMES = new ArrayList<String>();
test_class.type: List<String>
test_class.var_name: CLASS_NAMES
test_class.declarator: XLOG_METHODS = new ArrayList<XLogMethod>()
test_class.modifier: static final
test_class.original_string: static final List<XLogMethod> XLOG_METHODS = new ArrayList<XLogMethod>();
test_class.type: List<XLogMethod>
test_class.var_name: XLOG_METHODS
test_class.file: xlog-base/src/test/java/com/promegu/xlog/base/XLogUtilsTest.java
test_class.identifier: XLogUtilsTest
test_case.body: @Test
      public void testGetClassNameSection() {
          assertThat(XLogUtils.getClassNameSection("", 0), is(""));
          assertThat(XLogUtils.getClassNameSection(null, 0), nullValue());
          assertThat(XLogUtils.getClassNameSection("com", -1), is("com"));
          assertThat(XLogUtils.getClassNameSection("com", 2), is("com"));
          assertThat(XLogUtils.getClassNameSection("com.promegu", 1), is("com"));
          assertThat(XLogUtils.getClassNameSection("com.promegu", 2), is("com.promegu"));
          assertThat(XLogUtils.getClassNameSection("com.promegu.xlog.base", 2), is("com.promegu"));
          //CHECKSTYLE:OFF
          assertThat(XLogUtils.getClassNameSection("com.promegu.xlog.base", 4),
                  is("com.promegu.xlog.base"));
          //CHECKSTYLE:ON
      }
test_case.class_method_signature: XLogUtilsTest.testGetClassNameSection()
test_case.full_signature: @Test public void testGetClassNameSection()
test_case.identifier: testGetClassNameSection
test_case.invocations: assertThat getClassNameSection is assertThat getClassNameSection nullValue assertThat getClassNameSection is assertThat getClassNameSection is assertThat getClassNameSection is assertThat getClassNameSection is assertThat getClassNameSection is assertThat getClassNameSection is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetClassNameSection()
focal_class.declarator: TYPE_METHOD = 0
focal_class.modifier: public static final
focal_class.original_string: public static final int TYPE_METHOD = 0;
focal_class.type: int
focal_class.var_name: TYPE_METHOD
focal_class.declarator: TYPE_CONSTRUCTOR = 1
focal_class.modifier: public static final
focal_class.original_string: public static final int TYPE_CONSTRUCTOR = 1;
focal_class.type: int
focal_class.var_name: TYPE_CONSTRUCTOR
focal_class.declarator: PKG_NAME = "com.promegu.xlogger"
focal_class.modifier: public static final
focal_class.original_string: public static final String PKG_NAME = "com.promegu.xlogger";
focal_class.type: String
focal_class.var_name: PKG_NAME
focal_class.declarator: CLASS_NAME = "XLoggerMethods"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLASS_NAME = "XLoggerMethods";
focal_class.type: String
focal_class.var_name: CLASS_NAME
focal_class.declarator: FIELD_NAME_METHODS = "METHODS_TO_LOG"
focal_class.modifier: public static final
focal_class.original_string: public static final String FIELD_NAME_METHODS = "METHODS_TO_LOG";
focal_class.type: String
focal_class.var_name: FIELD_NAME_METHODS
focal_class.declarator: FIELD_NAME_CLASSES = "CLASSES_TO_LOG"
focal_class.modifier: public static final
focal_class.original_string: public static final String FIELD_NAME_CLASSES = "CLASSES_TO_LOG";
focal_class.type: String
focal_class.var_name: FIELD_NAME_CLASSES
focal_class.file: xlog-base/src/main/java/com/promegu/xlog/base/XLogUtils.java
focal_class.identifier: XLogUtils
focal_class.class_method_signature: XLogUtils.XLogUtils()
focal_class.full_signature: private  XLogUtils()
focal_class.identifier: XLogUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  XLogUtils()
focal_class.class_method_signature: XLogUtils.getRemainingClassNames(Set<Class<?>> classes,
              Set<String> classNames)
focal_class.full_signature: public static Set<String> getRemainingClassNames(Set<Class<?>> classes,
              Set<String> classNames)
focal_class.identifier: getRemainingClassNames
focal_class.modifiers: public static
focal_class.parameters: (Set<Class<?>> classes,
              Set<String> classNames)
focal_class.return: Set<String>
focal_class.signature: Set<String> getRemainingClassNames(Set<Class<?>> classes,
              Set<String> classNames)
focal_class.class_method_signature: XLogUtils.shouldLogMember(List<XLogMethod> xLogMethods, Member member)
focal_class.full_signature: public static boolean shouldLogMember(List<XLogMethod> xLogMethods, Member member)
focal_class.identifier: shouldLogMember
focal_class.modifiers: public static
focal_class.parameters: (List<XLogMethod> xLogMethods, Member member)
focal_class.return: boolean
focal_class.signature: boolean shouldLogMember(List<XLogMethod> xLogMethods, Member member)
focal_class.class_method_signature: XLogUtils.filterResult(String className, XLogSetting xLogSetting)
focal_class.full_signature: public static boolean filterResult(String className, XLogSetting xLogSetting)
focal_class.identifier: filterResult
focal_class.modifiers: public static
focal_class.parameters: (String className, XLogSetting xLogSetting)
focal_class.return: boolean
focal_class.signature: boolean filterResult(String className, XLogSetting xLogSetting)
focal_class.class_method_signature: XLogUtils.getPkgPrefixesForCoarseMatch(List<String> classNames,
              int pkgSectionSize)
focal_class.full_signature: public static List<String> getPkgPrefixesForCoarseMatch(List<String> classNames,
              int pkgSectionSize)
focal_class.identifier: getPkgPrefixesForCoarseMatch
focal_class.modifiers: public static
focal_class.parameters: (List<String> classNames,
              int pkgSectionSize)
focal_class.return: List<String>
focal_class.signature: List<String> getPkgPrefixesForCoarseMatch(List<String> classNames,
              int pkgSectionSize)
focal_class.class_method_signature: XLogUtils.getPkgPrefixesForCoarseMatchXLogMethods(List<XLogMethod> xLogMethods,
              int pkgSectionSize)
focal_class.full_signature: public static List<String> getPkgPrefixesForCoarseMatchXLogMethods(List<XLogMethod> xLogMethods,
              int pkgSectionSize)
focal_class.identifier: getPkgPrefixesForCoarseMatchXLogMethods
focal_class.modifiers: public static
focal_class.parameters: (List<XLogMethod> xLogMethods,
              int pkgSectionSize)
focal_class.return: List<String>
focal_class.signature: List<String> getPkgPrefixesForCoarseMatchXLogMethods(List<XLogMethod> xLogMethods,
              int pkgSectionSize)
focal_class.class_method_signature: XLogUtils.getClassNameSectionSize(String className)
focal_class.full_signature: static int getClassNameSectionSize(String className)
focal_class.identifier: getClassNameSectionSize
focal_class.modifiers: static
focal_class.parameters: (String className)
focal_class.return: int
focal_class.signature: int getClassNameSectionSize(String className)
focal_class.class_method_signature: XLogUtils.getClassNameSection(String className, int section)
focal_class.full_signature: static String getClassNameSection(String className, int section)
focal_class.identifier: getClassNameSection
focal_class.modifiers: static
focal_class.parameters: (String className, int section)
focal_class.return: String
focal_class.signature: String getClassNameSection(String className, int section)
focal_method.body: static String getClassNameSection(String className, int section) {
          int sectionSize = getClassNameSectionSize(className);
  
          if (className == null || section <= 0 || section >= sectionSize) {
              return className;
          }
  
          int index = 0;
          while (section > 0) {
              index++;
              if ('.' == className.charAt(index)) {
                  section--;
              }
          }
  
          return className.substring(0, index);
      }
focal_method.class_method_signature: XLogUtils.getClassNameSection(String className, int section)
focal_method.full_signature: static String getClassNameSection(String className, int section)
focal_method.identifier: getClassNameSection
focal_method.invocations: getClassNameSectionSize charAt substring
focal_method.modifiers: static
focal_method.parameters: (String className, int section)
focal_method.return: String
focal_method.signature: String getClassNameSection(String className, int section)