Ejemplo n.º 1
0
 /** <summary>Just track the new interface; check later.  Allows dups, but no biggie.</summary> */
 public virtual void ImplementInterface( StringTemplateGroupInterface I )
 {
     if ( _interfaces == null )
     {
         _interfaces = new List<StringTemplateGroupInterface>();
     }
     _interfaces.Add( I );
 }
Ejemplo n.º 2
0
 public virtual StringTemplateGroupInterface LoadInterface( string interfaceName )
 {
     StringTemplateGroupInterface I = null;
     try
     {
         TextReader br = Locate( interfaceName + ".sti" );
         if ( br == null )
         {
             Error( "no such interface file " + interfaceName + ".sti" );
             return null;
         }
         I = new StringTemplateGroupInterface( br, _errors );
     }
     catch ( IOException ioe )
     {
         Error( "can't load interface " + interfaceName, ioe );
     }
     return I;
 }
 /** <summary>Create an interface from the input stream</summary> */
 public StringTemplateGroupInterface( TextReader r,
     IStringTemplateErrorListener errors,
     StringTemplateGroupInterface superInterface)
 {
     this._listener = errors;
     SuperInterface = superInterface;
     ParseInterface( r );
 }