test_class.declarator: pool = ClassPool.getDefault()
test_class.modifier: private final static
test_class.original_string: private final static ClassPool pool = ClassPool.getDefault();
test_class.type: ClassPool
test_class.var_name: pool
test_class.file: com.gzoltar.core/src/test/java/com/gzoltar/core/instr/matchers/TestOrMatcher.java
test_class.identifier: TestOrMatcher
test_case.body: @Test
    public void testPublicOrProtectedMethods() throws Exception {
      MethodModifierMatcher publicMethodsMatcher = new MethodModifierMatcher(AccessFlag.PUBLIC);
      MethodModifierMatcher protectedMethodsMatcher = new MethodModifierMatcher(AccessFlag.PROTECTED);
      OrMatcher orMatcher = new OrMatcher(publicMethodsMatcher, protectedMethodsMatcher);
  
      CtClass ctClass = pool.get(PublicModifiers.class.getCanonicalName());
      CtBehavior ctBehavior = ctClass.getDeclaredMethod("isNegative");
      assertTrue(orMatcher.matches(ctBehavior));
  
      ctClass = pool.get(ProtectedModifiers.class.getCanonicalName());
      ctBehavior = ctClass.getDeclaredMethod("isNegative");
      assertTrue(orMatcher.matches(ctBehavior));
  
      ctClass = pool.get(PrivateModifiers.class.getCanonicalName());
      ctBehavior = ctClass.getDeclaredMethod("isNegative");
      assertFalse(orMatcher.matches(ctBehavior));
    }
test_case.class_method_signature: TestOrMatcher.testPublicOrProtectedMethods()
test_case.full_signature: @Test public void testPublicOrProtectedMethods()
test_case.identifier: testPublicOrProtectedMethods
test_case.invocations: get getCanonicalName getDeclaredMethod assertTrue matches get getCanonicalName getDeclaredMethod assertTrue matches get getCanonicalName getDeclaredMethod assertFalse matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPublicOrProtectedMethods()
focal_class.declarator: matchers
focal_class.modifier: private final
focal_class.original_string: private final IMatcher[] matchers;
focal_class.type: IMatcher[]
focal_class.var_name: matchers
focal_class.file: com.gzoltar.core/src/main/java/com/gzoltar/core/instr/matchers/OrMatcher.java
focal_class.identifier: OrMatcher
focal_class.interfaces: implements IMatcher
focal_class.class_method_signature: OrMatcher.OrMatcher(final IMatcher... matchers)
focal_class.full_signature: public  OrMatcher(final IMatcher... matchers)
focal_class.identifier: OrMatcher
focal_class.modifiers: public
focal_class.parameters: (final IMatcher... matchers)
focal_class.signature:  OrMatcher(final IMatcher... matchers)
focal_class.class_method_signature: OrMatcher.matches(final CtClass ctClass)
focal_class.full_signature: @Override public boolean matches(final CtClass ctClass)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (final CtClass ctClass)
focal_class.return: boolean
focal_class.signature: boolean matches(final CtClass ctClass)
focal_class.class_method_signature: OrMatcher.matches(final CtBehavior ctBehavior)
focal_class.full_signature: @Override public boolean matches(final CtBehavior ctBehavior)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (final CtBehavior ctBehavior)
focal_class.return: boolean
focal_class.signature: boolean matches(final CtBehavior ctBehavior)
focal_class.class_method_signature: OrMatcher.matches(final CtField ctField)
focal_class.full_signature: @Override public boolean matches(final CtField ctField)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (final CtField ctField)
focal_class.return: boolean
focal_class.signature: boolean matches(final CtField ctField)
focal_method.body: @Override
    public boolean matches(final CtClass ctClass) {
      for (IMatcher mat : this.matchers) {
        if (mat.matches(ctClass)) {
          return true;
        }
      }
      return false;
    }
focal_method.class_method_signature: OrMatcher.matches(final CtClass ctClass)
focal_method.full_signature: @Override public boolean matches(final CtClass ctClass)
focal_method.identifier: matches
focal_method.invocations: matches
focal_method.modifiers: @Override public
focal_method.parameters: (final CtClass ctClass)
focal_method.return: boolean
focal_method.signature: boolean matches(final CtClass ctClass)