戻り値の型がプリミティブ型ではないすべてのメソッドを検索する

// MethodDecl [ not Type::PrimitiveType ]

class Foo {}

class Bar {
// finds this
   Foo foobar() {
      return new Foo();
   }

// but not this
   int intbar() {
      return 0;
   }
}

述部の結果を否定するには、not 演算子を使用してください。