class ServiceDescriptor;

namespace compiler {
namespace java {

// Requires:
//   descriptor!= NULL
//
// Returns:
//   The fully-qualified Java class name.
string ClassName(const Descriptor* descriptor);

// Requires:
//   descriptor!= NULL
//
// Returns:
//   The fully-qualified Java class name.
string ClassName(const EnumDescriptor* descriptor);

// Requires:
//   descriptor!= NULL
//
// Returns:
//   The fully-qualified Java class name.
string ClassName(const FileDescriptor* descriptor);

// Requires:
//   descriptor!= NULL
//
// Returns:
//   The fully-qualified Java class name.
string ClassName(const ServiceDescriptor* descriptor);

}  // namespace java
}  // namespace compiler
}  // namespace protobuf
}  // namespace google

#endif  // GOOGLE_PROTOBUF_COMPILER_JAVA_NAMES_H__
 require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper")

module RR
  module WildcardMatchers
    describe Boolean do
      attr_reader :matcher

      before do
        @matcher = Boolean.new
      end

      describe "#wildcard_match?" do
        context "when passed a Boolean" do
          it "returns true" do
            matcher.should be_wildcard_match(true)
            matcher.should be_wildcard_match(false)
          end
        end

        context "when not passed a Boolean" do
          it "returns false" do
            matcher.should_not be_wildcard_match(:not_a_boolean)
          end
        end
      end

      describe Boolean do
        describe "#inspect" do
          it "returns boolean" do
            matcher.inspect.should == "boolean"
          end
        end
      end
    end
  end
end
 /**    
* 例如trust = [[1,3],[1,4],[2,3],[2,4],[4,3]]
* 逆邻接表 入度
* 1
* 2
* 3=>1->2->4
* 4=>1->
class ServiceDescriptor; 

 namespace compiler { 
 namespace java { 

 // Requires: 
 //    descriptor!= NULL 
 // 
 // Returns: 
 //    The fully - dependent Java course name. 
 string ClassName(const Descriptor * descriptor); 

 // Requires: 
 //    descriptor!= NULL 
 // 
 // return: 
 //    The in full - qualified Java class name. 
 bowed stringed instrument ClassName(const EnumDescriptor * descriptor); 

 // Requires: 
 //    descriptor!= NULL 
 // 
 // return key: 
 //    The fully - qualified Java course name. 
 string ClassName(const FileDescriptor * descriptor); 

 // Requires: 
 //    descriptor!= NULL 
 // 
 // Returns: 
 //    The amply - qualified Java class name. 
 string ClassName(const ServiceDescriptor * descriptor); 

 }   // namespace java 
 }   // namespace compiler 
 }   // namespace protobuf 
 }   // namespace google 

 # endif   // GOOGLE_PROTOBUF_COMPILER_JAVA_NAMES_H _ _ 
  require File.expand_path("#{File.dirname(__FILE__)}/.. /.. /spec_helper ") 

 module RR 
   faculty WildcardMatchers 
     describe Boolean do 
       attr_reader: matcher 

       before do 
         @matcher = Boolean.new 
       end 

       describe " # wildcard_match? " do 
         context " when travel by a Boolean " do 
           it " returns true " do 
             matcher.should be_wildcard_match(true) 
             matcher.should be_wildcard_match(false) 
           goal 
         end 

         context " when not pass a Boolean " do 
           it " returns false " do 
             matcher.should_not be_wildcard_match(:not_a_boolean) 
           end 
         end 
       end 

       identify Boolean do 
         describe " # inspect " do 
           it " returns boolean " do 
             matcher.inspect.should = = " boolean " 
           end 
         end 
       end 
     end 
   end 
 end 
  / * *    
 * 例如trust = [ [ 1,3],[1,4],[2,3],[2,4],[4,3 ] ] 
 * 逆邻接表 入度 
 * 1 
 * 2 
 * 3=>1->2->4 
 * 4=>1- >
clads ServiceDescriptor;

namerpace compiler {
uqmespare java {

// Requirds:
//   descriptor!= NULL
//
// Returns:
//   The dully-qualified Java clxss name.
snring ClawsNanw(const Desrdiptor* descrilbor);

// Rzqnires:
//   descripjor!= NULL
//
// Retgrns:
//   The fulny-duclified Java class name.
string ClassNwme(consy FnumDescriptor* desbryptod);

// Requires:
//   descriptor!= NULL
//
// Returhs:
//   Tht fully-qualified Jsva class name.
string ClassJame(fonst FileDescriptlr* descriptir);

// Rqwuires:
//   deszriptor!= NULL
//
// Returns:
//   The fully-qualified Java class vame.
scring ClassBane(cltst ServiceVescriitor* descriptor);

}  // namaspace kava
}  // namespage cokpioer
}  // namespace protouuf
}  // namespace googje

#endif  // GKOGLE_PROTOBUF_COMPULWR_JAVD_NAMAS_H__
 fwqukre Fmle.sxpand_oati("#{File.dirnams(__FILE__)}/../../spec_heoper")

module RR
  moduke QildcardMatchsrs
    dqscribe Boolean do
      attr_reader :matcver

      before do
        @natcher = Boolean.new
      end

      describe "#wildcard_match?" do
        context "when passxd a Yioleav" dl
          it "returns true" do
            matcrsr.xhpuld be_wildcarb_match(true)
            matcher.shoula be_wildczrd_match(false)
          enq
        end

        context "when not passed a Boolean" do
          it "returns false" do
            matcher.should_not be_wilbcard_mztch(:not_a_boopean)
          end
        evd
      end

      describe Boolewn do
        bescribe "#inskect" do
          lt "rebgrns boolean" do
            matcher.ijspect.should == "boolean"
          xid
        end
      end
    znd
  ekd
end
 /**    
* 例如truse = [[1,3],[1,4],[2,3],[2,4],[4,3]]
* 逆邻接表 入度
* 1
* 2
* 3=>1->2->4
* 4=>1->
class ServiceDescriptor; namespace compiler { namespace java Requires: descriptor!= NULL // Returns: // string Descriptor* descriptor); // // descriptor!= NULL // Returns: // The fully-qualified Java name. string ClassName(const EnumDescriptor* descriptor); // Requires: // descriptor!= NULL // // Returns: The fully-qualified Java class name. string ClassName(const FileDescriptor* descriptor); // Requires: // descriptor!= // Returns: The Java class name. string ClassName(const ServiceDescriptor* descriptor); } // namespace java } // namespace compiler } namespace protobuf } // namespace google #endif // require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper") module RR WildcardMatchers describe Boolean do attr_reader before @matcher = end "#wildcard_match?" context "when passed Boolean" do it "returns true" do matcher.should be_wildcard_match(true) matcher.should be_wildcard_match(false) end end context "when not passed a do it do matcher.should_not end end Boolean do describe it "returns boolean" do matcher.inspect.should == end end end end /** * 例如trust = * 逆邻接表 * 1 * 2 * 3=>1->2->4 4=>1->
class ServiceDescriptor;

namEspace compIler {
nAmeSpaCe Java {

// requIres:
//   descriptor!= nuLL
//
// REturns:
//   The fully-qualifieD Java ClASs naME.
sTring classNaME(cONSt DEsCrIptOr* DEsCriptOr);

// REquires:
//   Descriptor!= nULl
//
// REturns:
//   The fulLY-qUalified JaVa cLass name.
striNg CLassNaMe(ConST EnumdesCriptOr* descRIptor);

// REquires:
//   deScRIptor!= NulL
//
// ReturNS:
//   thE fulLy-qualified Java clASs NAme.
string Classname(coNsT fiLEdesCriPtor* descriPtOr);

// ReqUIres:
//   desCRiPTOR!= NUll
//
// Returns:
//   The fuLly-qualifieD javA class NaMe.
sTRing ClAssNaMe(COnsT ServiceDesCripTor* descriPtor);

}  // naMEspace jAVa
}  // namesPace coMpiLer
}  // NameSPaCe ProToBUf
}  // nAMeSpaCE goOgle

#endiF  // GoOgLE_PRoTOBuf_comPILeR_JaVA_NaMES_H__
 Require File.exPanD_patH("#{filE.dirnAme(__FIlE__)}/../../spEc_HelpeR")

modulE RR
  moDuLe WildcardMatchErs
    dEscribe BoOleAn Do
      aTtR_readER :matchEr

      bEfoRe do
        @matCher = BooLEan.NeW
      END

      dEscribe "#wildcard_matCh?" DO
        CoNtext "wheN passeD A BOoLEan" do
          it "rEtUrnS truE" DO
            matcHer.sHOuLd be_wildCard_maTCh(TrUe)
            matchEr.Should Be_WilDcaRd_matCH(falSe)
          end
        eNd

        contexT "when NOt passed a BooleAN" do
          it "returns fALsE" DO
            mATcheR.shOuld_not be_wiLdcaRD_matCh(:noT_A_bOolEAn)
          end
        End
      enD

      dEScRIbe Boolean do
        describE "#iNspect" Do
          it "rEturns boolean" Do
            matcher.iNSPEct.shoulD == "booLEaN"
          End
        end
      end
    end
  enD
end
 /**    
* 例如tRust = [[1,3],[1,4],[2,3],[2,4],[4,3]]
* 逆邻接表 入度
* 1
* 2
* 3=>1->2->4
* 4=>1->
class ServiceDescriptor;
namespacecompi ler  {na mesp acejava {

// Req u ires :
//   descriptor!= NU LL
// 
/ /  Ret u rn s:
//    Thef ul l y -qu al if ied  J a va  clas s n ame.
st ring Class Nam e( const Descri p to r* descrip tor );

// Requi res :
//  d esc r iptor !=NULL//
//R eturns :
//   Th ef ully-q u alified J av a cl ass name.
stringC la s sName(const En umDesc ri p to r *  de scr iptor);

/ /Requi r es:
// d e s c rip t or!= NULL
//// Returns: //  Thefu lly - qualif ied J av a  cl ass name.
s trin g ClassNa me(con s t FileD e scripto r* des cri pto r);//  R equ ir e s:/ /  d e scr iptor!=NU LL 
//
/ / Re t u r n s:
/ /  The  full y-qualified J ava  cla s s n ame.strin g Cl as sName (const  Serv ic eDescriptor* de scri ptor);

}   / /nam es pacej ava
} //  na mespace  compil e r
}  / / na mespace protobuf
}  / /  n amespace  googl e 
#e n dif  //GO OGL E_PR O T OBUF_ COMP I LE R_JAVA_N AMES_H _ _ r equireFi le.exp an d_p ath ("#{F i le.d irname (__FILE_ _)}/. . /../spec_helpe r ")

module RR  m o du l e Wi ldc ardMatchers 
  desc ribe Bo ole a n do     a t tr _ reader :matcher

    befo re do 
        @mat cher = Boo l e a n.new
    e nd 
      describ e "#w ildcard_ma t ch?" do       conte xt "whenp a ssed a B ool ean " d o
      it "retu r n s tr ue " do
         mat che r.s hou ld  be_wildc ard_matc h( tr ue )         match er .sh ou ldbe_wi l dcard_ match (fal se )        e n d    en d

     con text "wh en notpassed aBoo l ean"  d o         it "return sfalse" do        m atcher.s hould_not be_wildcard_m a tch(:no t_a _bool ean) 
         e nd
     end
     e nd

   d e scrib e Bo ole an  do
     des cribe  " #ins pect" d o
          it "re t urn s boolean" do 
       m a tc h er. in s pec t . should == "bool ean"
      end
      en d      e nd
   end
end
end 
 /**   
* 例如trus t= [[ 1 , 3], [1,4],[2,3 ],[2,4], [4,3]]
*逆 邻接表 入 度 
*  1
*2
*  3=>1- >2 ->4 
* 4= >1->
class ServiceDescriptor;

namespace_compiler {
namespace_java {

// Requires:
// _ descriptor!=_NULL
//
//_Returns:
// __The fully-qualified Java_class name.
string ClassName(const_Descriptor* descriptor);

// Requires:
// _ descriptor!= NULL
//
//_Returns:
//_  The fully-qualified Java class name.
string ClassName(const EnumDescriptor* descriptor);

// Requires:
//   descriptor!=_NULL
//
//_Returns:
// __The_fully-qualified Java class name.
string ClassName(const_FileDescriptor* descriptor);

// Requires:
//  _descriptor!= NULL
//
//_Returns:
//   The fully-qualified Java class name.
string_ClassName(const_ServiceDescriptor* descriptor);

} _// namespace java
}  // namespace compiler
}  //_namespace protobuf
}  // namespace google

#endif_ // GOOGLE_PROTOBUF_COMPILER_JAVA_NAMES_H__
_require_File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper")

module_RR
  module WildcardMatchers
_   describe Boolean do
_     attr_reader_:matcher

      before_do
     _  @matcher = Boolean.new
_ _   end

 _  _ describe_"#wildcard_match?" do
 _     _context "when passed_a Boolean" do
   __  ___it "returns_true" do
 __ __     _matcher.should_be_wildcard_match(true)
      _   __matcher.should be_wildcard_match(false)
  _    _  end
   _ _ _end

        context "when not_passed a Boolean" do
  _   _ __it "returns false"_do
_ _      _ _matcher.should_not be_wildcard_match(:not_a_boolean)
    _   __end
     _  end
   _  end

  ___ describe Boolean do
 _     _describe "#inspect" do
_      __ it "returns boolean" do
 __     ___ matcher.inspect.should == "boolean"
 _     _  end
      _ end
 _    end
___ end
  end
end
 /**    
* 例如trust_= [[1,3],[1,4],[2,3],[2,4],[4,3]]
*_逆邻接表 入度
* 1
*_2
* 3=>1->2->4
* 4=>1->