test_class.file: code/src/test/java/com/googlecode/cqengine/index/compound/support/CompoundQueryTest.java
test_class.identifier: CompoundQueryTest
test_case.body: @Test
      public void testFromAndQueryIfSuitable() {
          assertNotNull(CompoundQuery.fromAndQueryIfSuitable(and(equal(Car.DOORS, 5), equal(Car.MANUFACTURER, "Ford"))));
          assertNull(CompoundQuery.fromAndQueryIfSuitable(and(equal(Car.DOORS, 5), in(Car.MANUFACTURER, "Ford", "Honda"))));
      }
test_case.class_method_signature: CompoundQueryTest.testFromAndQueryIfSuitable()
test_case.full_signature: @Test public void testFromAndQueryIfSuitable()
test_case.identifier: testFromAndQueryIfSuitable
test_case.invocations: assertNotNull fromAndQueryIfSuitable and equal equal assertNull fromAndQueryIfSuitable and equal in
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFromAndQueryIfSuitable()
focal_class.declarator: andQuery
focal_class.modifier: private final
focal_class.original_string: private final And<O> andQuery;
focal_class.type: And<O>
focal_class.var_name: andQuery
focal_class.declarator: compoundAttribute
focal_class.modifier: private final
focal_class.original_string: private final CompoundAttribute<O> compoundAttribute;
focal_class.type: CompoundAttribute<O>
focal_class.var_name: compoundAttribute
focal_class.file: code/src/main/java/com/googlecode/cqengine/index/compound/support/CompoundQuery.java
focal_class.identifier: CompoundQuery
focal_class.interfaces: implements Query<O>
focal_class.class_method_signature: CompoundQuery.CompoundQuery(And<O> andQuery, CompoundAttribute<O> compoundAttribute)
focal_class.full_signature: public  CompoundQuery(And<O> andQuery, CompoundAttribute<O> compoundAttribute)
focal_class.identifier: CompoundQuery
focal_class.modifiers: public
focal_class.parameters: (And<O> andQuery, CompoundAttribute<O> compoundAttribute)
focal_class.signature:  CompoundQuery(And<O> andQuery, CompoundAttribute<O> compoundAttribute)
focal_class.class_method_signature: CompoundQuery.matches(O object, QueryOptions queryOptions)
focal_class.full_signature: @Override public boolean matches(O object, QueryOptions queryOptions)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (O object, QueryOptions queryOptions)
focal_class.return: boolean
focal_class.signature: boolean matches(O object, QueryOptions queryOptions)
focal_class.class_method_signature: CompoundQuery.getAndQuery()
focal_class.full_signature: public And<O> getAndQuery()
focal_class.identifier: getAndQuery
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: And<O>
focal_class.signature: And<O> getAndQuery()
focal_class.class_method_signature: CompoundQuery.getCompoundAttribute()
focal_class.full_signature: public CompoundAttribute<O> getCompoundAttribute()
focal_class.identifier: getCompoundAttribute
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CompoundAttribute<O>
focal_class.signature: CompoundAttribute<O> getCompoundAttribute()
focal_class.class_method_signature: CompoundQuery.getCompoundValueTuple()
focal_class.full_signature: public CompoundValueTuple<O> getCompoundValueTuple()
focal_class.identifier: getCompoundValueTuple
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CompoundValueTuple<O>
focal_class.signature: CompoundValueTuple<O> getCompoundValueTuple()
focal_class.class_method_signature: CompoundQuery.fromAndQueryIfSuitable(And<O> andQuery)
focal_class.full_signature: public static CompoundQuery<O> fromAndQueryIfSuitable(And<O> andQuery)
focal_class.identifier: fromAndQueryIfSuitable
focal_class.modifiers: public static
focal_class.parameters: (And<O> andQuery)
focal_class.return: CompoundQuery<O>
focal_class.signature: CompoundQuery<O> fromAndQueryIfSuitable(And<O> andQuery)
focal_method.body: public static <O> CompoundQuery<O> fromAndQueryIfSuitable(And<O> andQuery) {
          if (andQuery.hasLogicalQueries() || andQuery.hasComparativeQueries()) {
              return null;
          }
          List<Attribute<O, ?>> attributeList = new ArrayList<Attribute<O, ?>>(andQuery.getSimpleQueries().size());
          for (SimpleQuery<O, ?> simpleQuery : andQuery.getSimpleQueries()) {
              if (!(simpleQuery instanceof Equal)) {
                  return null;
              }
              attributeList.add(simpleQuery.getAttribute());
          }
          CompoundAttribute<O> compoundAttribute = new CompoundAttribute<O>(attributeList);
  
          return new CompoundQuery<O>(andQuery, compoundAttribute);
      }
focal_method.class_method_signature: CompoundQuery.fromAndQueryIfSuitable(And<O> andQuery)
focal_method.full_signature: public static CompoundQuery<O> fromAndQueryIfSuitable(And<O> andQuery)
focal_method.identifier: fromAndQueryIfSuitable
focal_method.invocations: hasLogicalQueries hasComparativeQueries size getSimpleQueries getSimpleQueries add getAttribute
focal_method.modifiers: public static
focal_method.parameters: (And<O> andQuery)
focal_method.return: CompoundQuery<O>
focal_method.signature: CompoundQuery<O> fromAndQueryIfSuitable(And<O> andQuery)