Find declarations of methods that return 'void' or 'char'

// MethodDecl [ Type::PrimitiveType [ @Type = PT_CHAR ] | Type::VoidType ]

class Bar {
   class Foo {}

// finds this
   public final static void voidbar() {}

// and this
   char charbar() {
      return 0;
   }

// no match - returns neither void nor char
   Foo foobar() {
      return new Foo();
   }
}

Related Topics Link IconSee also